summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTom Lane2001-10-02 22:38:43 +0000
committerTom Lane2001-10-02 22:38:43 +0000
commita5dafa317756ab8e622c0eb4634444ecea6aac4e (patch)
tree6edbf1aa917d8f7351cc0e4c873478e15d046a22 /contrib
parentf2c657375d894ed197071c91090025d68a6057f7 (diff)
Tweak to test HAVE_GETOPT_H before including <getopt.h>, so as to
build on systems without.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/oid2name/oid2name.c5
1 files changed, 3 insertions, 2 deletions
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 <stdlib.h>
#include <unistd.h>
-#include <string.h>
+#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#endif
#include "libpq-fe.h"