summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.c2
-rw-r--r--src/common/include.am9
2 files changed, 10 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 701027523e..a931f0a229 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -69,6 +69,8 @@
#endif
#ifdef HAVE_READPASSPHRASE_H
#include <readpassphrase.h>
+#elif !defined(_WIN32)
+#include "readpassphrase.h"
#endif
#ifndef HAVE_GETTIMEOFDAY
diff --git a/src/common/include.am b/src/common/include.am
index b782310663..789f4003c9 100644
--- a/src/common/include.am
+++ b/src/common/include.am
@@ -51,6 +51,12 @@ if THREADS_WIN32
threads_impl_source=src/common/compat_winthreads.c
endif
+if BUILD_READPASSPHRASE_C
+readpassphrase_source=src/ext/readpassphrase.c
+else
+readpassphrase_source=
+endif
+
LIBOR_A_SOURCES = \
src/common/address.c \
src/common/backtrace.c \
@@ -67,7 +73,8 @@ LIBOR_A_SOURCES = \
src/ext/csiphash.c \
src/ext/trunnel/trunnel.c \
$(libor_extra_source) \
- $(threads_impl_source)
+ $(threads_impl_source) \
+ $(readpassphrase_source)
src/common/log.o: micro-revision.i