summaryrefslogtreecommitdiff
path: root/sapi/apache_hooks/php_apache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/apache_hooks/php_apache.c')
-rw-r--r--sapi/apache_hooks/php_apache.c3
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;