diff --git a/ext/fileinfo/libmagic/print.c b/ext/fileinfo/libmagic/print.c index 851045375d2..6d7945a04d8 100644 --- a/ext/fileinfo/libmagic/print.c +++ b/ext/fileinfo/libmagic/print.c @@ -29,8 +29,8 @@ * print.c - debugging printout routines */ +#define _GNU_SOURCE #include "php.h" -#include "main/snprintf.h" #include "file.h" @@ -38,6 +38,7 @@ FILE_RCSID("@(#)$File: print.c,v 1.66 2009/02/03 20:27:51 christos Exp $") #endif /* lint */ +#include #include #include #include diff --git a/main/snprintf.c b/main/snprintf.c index e623e821d36..16f10ecfe63 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -18,7 +18,7 @@ /* $Id$ */ - +#define _GNU_SOURCE #include "php.h" #include