summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/replace/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 7dbf468d11..43e8e9ac40 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -281,8 +281,8 @@ def configure(conf):
# if we have both, then we prefer getpassphrase
conf.DEFINE('REPLACE_GETPASS_BY_GETPASSPHRASE', 1)
conf.DEFINE('REPLACE_GETPASS', 1)
-
- conf.CHECK_CODE('''#include "getpass.c"
+ else:
+ conf.CHECK_CODE('''#include "getpass.c"
int main(void) { return 0; }''',
addmain=False,
define='REPLACE_GETPASS',