Bug #769: fopen_wrappers.c fails to compile : in_addr_t wrongly defined as "u_int".
| From: | Danny dot Heijl at cevi dot be | Date: | Wed, 23 Sep 1998 07:33:18 +0000 |
| Subject: | Bug #769: fopen_wrappers.c fails to compile : in_addr_t wrongly defined as "u_int". | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-1434@lists.php.net to get a copy of this message | ||
From: Danny.Heijl@cevi.be
Operating system: NCR Unix MP-RAS 3.02
PHP version: 3.0.4
PHP Bug Type: Compile Failure
Bug description: fopen_wrappers.c fails to compile : in_addr_t wrongly defined as
"u_int".
The "configure.in" script that comes with 3.04 mistakenly defines "in_addr_t" as
"u_int" on
NCR Unix MP-RAS 3.02 so that fopen_wrappers.c fails to compile.
Not being familiar with this autoconf stuff, I simply removed the offending
in_addr_t check for AIX (see below) and the problem went away.
If someone knows how to fix this let me know and I will test the fix on NCR MP-RAS.
--- configure.in Wed Sep 23 09:20:38 1998
+++ configure.in.save Wed Sep 23 09:13:40 1998
@@ -97,6 +97,25 @@
])
])
+dnl AIX keeps in_addr_t in /usr/include/netinet/in.h
+dnl AC_MSG_CHECKING(for in_addr_t)
+AC_CACHE_VAL(ac_cv_type_$1,
+[AC_EGREP_CPP(dnl
+changequote(<<,>>)dnl
+<<in_addr_t[^a-zA-Z_0-9]>>dnl
+changequote([,]), [#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif], ac_cv_type_in_addr_t=yes, ac_cv_type_in_addr_t=no)])dnl
+
+dnl AC_MSG_RESULT($ac_cv_type_in_addr_t)
+if test $ac_cv_type_in_addr_t = no; then
+ AC_DEFINE(in_addr_t, u_int)
+fi
dnl Checks for header files.
AC_HEADER_STDC
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net