diff options
author | David Shaw <[email protected]> | 2003-05-31 03:52:02 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-05-31 03:52:02 +0000 |
commit | 0a86b45b9d4b8a6f34e2dcee80bf06368d478a85 (patch) | |
tree | e0a782a610e258ca854da1072fdb39b9054329f4 /keyserver/gpgkeys_ldap.c | |
parent | * Makefile.am: Some cleanup, and use DLLIBS for -ldl. (diff) | |
download | gnupg-0a86b45b9d4b8a6f34e2dcee80bf06368d478a85.tar.gz gnupg-0a86b45b9d4b8a6f34e2dcee80bf06368d478a85.zip |
* gpgkeys_hkp.c, gpgkeys_ldap.c: #include <getopt.h> if it is available.
Also include extern references for optarg and optind since there is no
guarantee that any header file will include them. Standards? We don't
need no stinkin' standards
* Makefile.am: Use @GETOPT@ to pull in libiberty on those platforms that
need it.
Diffstat (limited to 'keyserver/gpgkeys_ldap.c')
-rw-r--r-- | keyserver/gpgkeys_ldap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/keyserver/gpgkeys_ldap.c b/keyserver/gpgkeys_ldap.c index aecf163e6..ff42eff7b 100644 --- a/keyserver/gpgkeys_ldap.c +++ b/keyserver/gpgkeys_ldap.c @@ -23,6 +23,9 @@ #include <string.h> #include <time.h> #include <unistd.h> +#ifdef HAVE_GETOPT_H +#include <getopt.h> +#endif #include <stdlib.h> #include <errno.h> #ifdef NEED_LBER_H @@ -35,6 +38,9 @@ #include "util.h" #endif +extern char *optarg; +extern int optind; + #define GET 0 #define SEND 1 #define SEARCH 2 |