gpgscm: Fix inclusion of readline header.
authorJustus Winter <justus@g10code.com>
Wed, 2 Nov 2016 12:06:06 +0000 (13:06 +0100)
committerJustus Winter <justus@g10code.com>
Wed, 2 Nov 2016 12:06:06 +0000 (13:06 +0100)
* tests/gpgscm/ffi.c: Define magic macro to prevent the completion
function from redefined.

GnuPG-bug-id: 2824
Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/ffi.c

index 8e21ba6..305b7a1 100644 (file)
@@ -35,6 +35,7 @@
 #include <unistd.h>
 
 #if HAVE_LIBREADLINE
+#define GNUPG_LIBREADLINE_H_INCLUDED
 #include <readline/readline.h>
 #include <readline/history.h>
 #endif