cvs: php4 /sapi/apache_hooks php_apache.c
| From: | George Schlossnagle | Date: | Mon, 18 Nov 2002 06:09:23 +0000 |
| Subject: | cvs: php4 /sapi/apache_hooks php_apache.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16383@lists.php.net to get a copy of this message | ||
gschlossnagle Mon Nov 18 01:09:23 2002 EDT
Modified files:
/php4/sapi/apache_hooks php_apache.c
Log:
#defined offsetof, for systems that can't find it
Index: php4/sapi/apache_hooks/php_apache.c
diff -u php4/sapi/apache_hooks/php_apache.c:1.1 php4/sapi/apache_hooks/php_apache.c:1.2
--- php4/sapi/apache_hooks/php_apache.c:1.1 Sun Nov 17 20:01:21 2002
+++ php4/sapi/apache_hooks/php_apache.c Mon Nov 18 01:09:23 2002
@@ -17,7 +17,7 @@
| David Sklar <sklar@student.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_apache.c,v 1.1 2002/11/18 01:01:21 gschlossnagle Exp $ */
+/* $Id: php_apache.c,v 1.2 2002/11/18 06:09:23 gschlossnagle Exp $ */
#include "php_apache_http.h"
@@ -35,6 +35,9 @@
#endif
#define SECTION(name) PUTS("<H2 align=\"center\">" name
"</H2>\n")
+
+#undef offsetof
+#define offsetof(s_type,field) ((size_t)&(((s_type*)0)->field))
extern module *top_module;
static int le_apachereq;