]> granicus.if.org Git - postgresql/commitdiff
Remove getopt configure check.
authorBruce Momjian <bruce@momjian.us>
Mon, 19 Jul 1999 01:18:05 +0000 (01:18 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 19 Jul 1999 01:18:05 +0000 (01:18 +0000)
src/configure.in
src/include/config.h.in
src/interfaces/ecpg/preproc/ecpg.c

index 311c36bb22bdcb2448e077cffc87fc69b8d1dd3e..05ad2c2ea68e1375c23986a26e97b858a060db7d 100644 (file)
@@ -582,7 +582,6 @@ AC_CHECK_HEADERS(dld.h)
 AC_CHECK_HEADERS(endian.h)
 AC_CHECK_HEADERS(float.h)
 AC_CHECK_HEADERS(fp_class.h)
-AC_CHECK_HEADERS(getopt.h)
 AC_CHECK_HEADERS(history.h)
 AC_CHECK_HEADERS(ieeefp.h)
 AC_CHECK_HEADERS(limits.h)
index 89a573d753eedae4839b2c3a0947aae2fc288760..fb1d566a09e68b14db6edcb9c66db24a2114a052 100644 (file)
 /* Set to 1 if you have <fp_class.h> */
 #undef HAVE_FP_CLASS_H
 
-/* Set to 1 if you have <fp_class.h> */
-#undef HAVE_GETOPT
-
 /* Set to 1 if you have <history.h> */
 #undef HAVE_HISTORY_H
 
index a75adbcfc5562cbc82858407fb43984e6f212afa..07fc820df876ea267be2a4c19f31ca6db3856f70 100644 (file)
@@ -2,14 +2,11 @@
 /* (C) Michael Meskes <meskes@debian.org> Feb 5th, 1998 */
 /* Placed under the same copyright as PostgresSQL */
 
+#include <unistd.h>
 #include "postgres.h"
 
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#else
-#include <unistd.h>
-extern int     optind;
-extern char *optarg;
+#ifdef __CYGWIN32__
+#include "getopt.h"
 #endif
 
 #include "extern.h"