diff options
author | George Schlossnagle <gschlossnagle@php.net> | 2002-11-18 06:09:23 +0000 |
---|---|---|
committer | George Schlossnagle <gschlossnagle@php.net> | 2002-11-18 06:09:23 +0000 |
commit | 2c34ea1be410bd19ff2ed760dbd2a2be22957132 (patch) | |
tree | fb2b1eb3eac5a5ae0f29c34a6b783f1fc60fe172 /sapi/apache_hooks/php_apache.c | |
parent | 51e4dbaba031cfbbff73a693d58718eb3cdd39c4 (diff) | |
download | php-git-2c34ea1be410bd19ff2ed760dbd2a2be22957132.tar.gz |
#defined offsetof, for systems that can't find it
Diffstat (limited to 'sapi/apache_hooks/php_apache.c')
-rw-r--r-- | sapi/apache_hooks/php_apache.c | 3 |
1 files changed, 3 insertions, 0 deletions
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("<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; static zend_class_entry *apacherequest_class_entry; |