Tweak to test HAVE_GETOPT_H before including <getopt.h>, so as to

build on systems without.
REL7_2_STABLE
Tom Lane 24 years ago
parent f2c657375d
commit a5dafa3177
  1. 5
      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"

Loading…
Cancel
Save