diff options
author | Xinchen Hui <laruence@gmail.com> | 2017-04-10 11:44:41 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2017-04-10 11:44:41 +0800 |
commit | 341ff7119f0c8291f6617fea5c60d19a4eb22336 (patch) | |
tree | 0419838eb846aa873bf1fce7b9ba1af8c64c2831 /ext/fileinfo/libmagic/apprentice.c | |
parent | a87ee7c57b1e45e29dffbbc7365b0d4f723fda4e (diff) | |
download | php-git-341ff7119f0c8291f6617fea5c60d19a4eb22336.tar.gz |
Fixed bug #74379 (syntax error compile error in libmagic/apprentice.c)
Diffstat (limited to 'ext/fileinfo/libmagic/apprentice.c')
-rw-r--r-- | ext/fileinfo/libmagic/apprentice.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/fileinfo/libmagic/apprentice.c b/ext/fileinfo/libmagic/apprentice.c index 8347afdeb7..5e1677a099 100644 --- a/ext/fileinfo/libmagic/apprentice.c +++ b/ext/fileinfo/libmagic/apprentice.c @@ -80,6 +80,10 @@ FILE_RCSID("@(#)$File: apprentice.c,v 1.230 2015/01/02 21:29:39 christos Exp $") #endif #endif +#ifndef offsetof +#define offsetof(STRUCTURE,FIELD) ((int)((char*)&((STRUCTURE*)0)->FIELD)) +#endif + #ifndef MAP_FAILED #define MAP_FAILED (void *) -1 #endif |