From 33ab177a56b6fe751e70123cf1aa80448d9ca253 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 7 Aug 2003 21:11:58 +0000 Subject: 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. --- src/bin/scripts/common.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/bin/scripts/common.h') 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 -#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; -- cgit v1.2.3