summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-12-30 16:09:17 +0000
committerSascha Schumann <sas@php.net>1999-12-30 16:09:17 +0000
commit5b2ecc5b827823be7f1c2977e9158f6b1462cdb0 (patch)
treeb56d0ca1a7153a4990f5da8c233dee7d6d1f05b2 /acinclude.m4
parent701a00d39126f3bfe36b88a31b846d4b6cf67c4e (diff)
downloadphp-git-5b2ecc5b827823be7f1c2977e9158f6b1462cdb0.tar.gz
Typedef socklen_t, if it is not available
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 188659a555..b45ca77deb 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -117,8 +117,8 @@ socklen_t x;
],[
ac_cv_socklen_t=no
]))
-if test "$ac_cv_socklen_t" = "no"; then
- AC_DEFINE(socklen_t, unsigned int)
+if test "$ac_cv_socklen_t" = "yes"; then
+ AC_DEFINE(HAVE_SOCKLEN_T, 1, [Whether you have socklen_t])
fi
])