From: George Schlossnagle Date: Mon, 18 Nov 2002 06:09:23 +0000 (+0000) Subject: #defined offsetof, for systems that can't find it X-Git-Tag: RELEASE_1_0b2~166 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c34ea1be410bd19ff2ed760dbd2a2be22957132;p=php #defined offsetof, for systems that can't find it --- diff --git a/sapi/apache_hooks/php_apache.c b/sapi/apache_hooks/php_apache.c index e136d955fd..b1a1f27071 100644 --- a/sapi/apache_hooks/php_apache.c +++ b/sapi/apache_hooks/php_apache.c @@ -36,6 +36,9 @@ php_apache_info_struct php_apache_info; #define SECTION(name) PUTS("

" name "

\n") +#undef offsetof +#define offsetof(s_type,field) ((size_t)&(((s_type*)0)->field)) + extern module *top_module; static int le_apachereq; static zend_class_entry *apacherequest_class_entry;