File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
- /* $Id: inet_aton.c,v 1.11 1997/12/19 13:34:28 scrappy Exp $
1
+ /* $Id: inet_aton.c,v 1.12 1998/01/23 19: 13:14 scrappy Exp $
2
2
*
3
3
* This inet_aton() function was taken from the GNU C library and
4
4
* incorporated into Postgres for those systems which do not have this
45
45
#include <sys/types.h>
46
46
#include <netinet/in.h>
47
47
#include <ctype.h>
48
- #include "inet_aton.h"
49
48
50
49
/*
51
50
* Check whether "cp" is a valid ascii representation
Original file line number Diff line number Diff line change @@ -2738,7 +2738,7 @@ else
2738
2738
fi
2739
2739
done
2740
2740
2741
- for ac_hdr in sys/resource.h netdb.h
2741
+ for ac_hdr in sys/resource.h netdb.h arpa/inet.h
2742
2742
do
2743
2743
ac_safe=` echo " $ac_hdr " | sed ' y%./+-%__p_%' `
2744
2744
echo $ac_n " checking for $ac_hdr " " ... $ac_c " 1>&6
Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ dnl Checks for header files.
428
428
AC_HEADER_STDC
429
429
AC_HEADER_SYS_WAIT
430
430
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
431
- AC_CHECK_HEADERS(sys/resource.h netdb.h)
431
+ AC_CHECK_HEADERS(sys/resource.h netdb.h arpa/inet.h )
432
432
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
433
433
AC_CHECK_HEADERS(readline/history.h)
434
434
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 <arpa/inet.h> */
18
+ #undef HAVE_ARPA_INET_H
19
+
17
20
/* Set to 1 if you have <netdb.h> */
18
21
#undef HAVE_NETDB_H
19
22
@@ -74,6 +77,9 @@ int gethostname(char *name, int namelen);
74
77
/* Set to 1 if you have inet_aton() */
75
78
#undef HAVE_INET_ATON
76
79
#ifndef HAVE_INET_ATON
80
+ # ifdef HAVE_ARPA_INET_H
81
+ # include <arpa/inet.h>
82
+ # endif
77
83
extern int inet_aton (const char * cp , struct in_addr * addr );
78
84
#endif
79
85
You can’t perform that action at this time.
0 commit comments