diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-07 21:11:58 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-07 21:11:58 +0000 |
commit | 33ab177a56b6fe751e70123cf1aa80448d9ca253 (patch) | |
tree | b86c64fe688b1f4d383e57b836514ec7c1ee1e96 /src/bin/scripts/common.h | |
parent | fea2ffa7d8ac6c3bf773247f7aa0a1f5fea653f7 (diff) | |
download | postgresql-33ab177a56b6fe751e70123cf1aa80448d9ca253.tar.gz postgresql-33ab177a56b6fe751e70123cf1aa80448d9ca253.zip |
Don't assume that struct option is available just because we can find a
getopt_long(). This is more or less the same problem as we saw earlier
with getaddrinfo() and struct addrinfo, and for the same reason: random
user-added libraries might contain the subroutine, but there's no
guarantee we will find the matching header files.
Diffstat (limited to 'src/bin/scripts/common.h')
-rw-r--r-- | src/bin/scripts/common.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/bin/scripts/common.h b/src/bin/scripts/common.h index 8a6431e7245..f8cba29eb33 100644 --- a/src/bin/scripts/common.h +++ b/src/bin/scripts/common.h @@ -1,15 +1,8 @@ #include "postgres_fe.h" -#ifdef HAVE_GETOPT_H -#include <getopt.h> -#endif - -#ifndef HAVE_GETOPT_LONG -#include "getopt_long.h" -#endif - #include "libpq-fe.h" #include "pqexpbuffer.h" +#include "getopt_long.h" #ifndef HAVE_OPTRESET int optreset; |