File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ dnl Checks for header files.
419
419
AC_HEADER_STDC
420
420
AC_HEADER_SYS_WAIT
421
421
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
422
- AC_CHECK_HEADERS(sys/resource.h netdb.h arpa/inet.h)
422
+ AC_CHECK_HEADERS(sys/resource.h netdb.h arpa/inet.h getopt.h )
423
423
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
424
424
AC_CHECK_HEADERS(readline/history.h ieeefp.h fp_class.h)
425
425
Original file line number Diff line number Diff line change 14
14
* The following is set using configure.
15
15
*/
16
16
17
+ /* Set to 1 if you have <getopt.h> */
18
+ #undef HAVE_GETOPT_H
19
+
17
20
/* Set to 1 if you have <fp_class.h> */
18
21
#undef HAVE_FP_CLASS_H
19
22
Original file line number Diff line number Diff line change 3
3
/* Placed under the same copyright as PostgresSQL */
4
4
5
5
#include <stdio.h>
6
- #include <getopt.h>
6
+ #if HAVE_GETOPT_H
7
+ # include <getopt.h>
8
+ #else
9
+ # include <unistd.h>
10
+ #endif
7
11
#include <stdlib.h>
8
12
#include <strings.h>
9
13
You can’t perform that action at this time.
0 commit comments