From: Tom Lane Date: Tue, 2 Oct 2001 22:38:43 +0000 (+0000) Subject: Tweak to test HAVE_GETOPT_H before including , so as to X-Git-Tag: REL7_2_BETA1~223 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5dafa317756ab8e622c0eb4634444ecea6aac4e;p=thirdparty%2Fpostgresql.git Tweak to test HAVE_GETOPT_H before including , so as to build on systems without. --- diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c index 2bfb0a2a520..99352cc19c4 100644 --- a/contrib/oid2name/oid2name.c +++ b/contrib/oid2name/oid2name.c @@ -5,11 +5,12 @@ b. palmer, bpalmer@crimelabs.net 1-17-2001 */ +#include "postgres_fe.h" -#include #include -#include +#ifdef HAVE_GETOPT_H #include +#endif #include "libpq-fe.h"