diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-02 22:38:43 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-02 22:38:43 +0000 |
| commit | a5dafa317756ab8e622c0eb4634444ecea6aac4e (patch) | |
| tree | 6edbf1aa917d8f7351cc0e4c873478e15d046a22 | |
| parent | f2c657375d894ed197071c91090025d68a6057f7 (diff) | |
| download | postgresql-a5dafa317756ab8e622c0eb4634444ecea6aac4e.tar.gz | |
Tweak to test HAVE_GETOPT_H before including <getopt.h>, so as to
build on systems without.
| -rw-r--r-- | contrib/oid2name/oid2name.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c index 2bfb0a2a52..99352cc19c 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" |
