cvs: /php4 acinclude.m4 php.h

From: Date: Thu, 30 Dec 1999 16:09:49 +0000
Subject: cvs: /php4 acinclude.m4 php.h
Groups: php.version4 
Request: Send a blank email to php-version4+get-8718@lists.php.net to get a copy of this message
sas Thu Dec 30 11:09:49 1999 EDT Modified files: /php4 acinclude.m4 php.h Log: Typedef socklen_t, if it is not available Index: php4/acinclude.m4 diff -u php4/acinclude.m4:1.55 php4/acinclude.m4:1.56 --- php4/acinclude.m4:1.55 Thu Dec 30 09:48:26 1999 +++ php4/acinclude.m4 Thu Dec 30 11:09:17 1999 @@ -1,4 +1,4 @@ -dnl $Id: acinclude.m4,v 1.55 1999/12/30 14:48:26 sas Exp $ +dnl $Id: acinclude.m4,v 1.56 1999/12/30 16:09:17 sas Exp $ dnl dnl This file contains local autoconf functions. @@ -117,8 +117,8 @@ ],[ 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 ]) Index: php4/php.h diff -u php4/php.h:1.52 php4/php.h:1.53 --- php4/php.h:1.52 Tue Dec 21 14:40:26 1999 +++ php4/php.h Thu Dec 30 11:09:17 1999 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php.h,v 1.52 1999/12/21 19:40:26 andrei Exp $ */ +/* $Id: php.h,v 1.53 1999/12/30 16:09:17 sas Exp $ */ #ifndef _PHP_H #define _PHP_H @@ -106,6 +106,10 @@ #ifndef HAVE_STRTOK_R char *strtok_r(char *s, const char *delim, char **last); +#endif + +#ifndef HAVE_SOCKLEN_T +typedef unsigned int socklen_t; #endif #include "request_info.h"

« previous php.version4 (#8718) next »