Patch fix-build for Compile Failure Bug #54934
Patch version 2011-05-27 00:59 UTC
Return to Bug #54934 |
Download this patch
Patch Revisions:
Developer: felipe@php.net
Index: ext/fileinfo/libmagic/apprentice.c
===================================================================
--- ext/fileinfo/libmagic/apprentice.c (revision 311422)
+++ ext/fileinfo/libmagic/apprentice.c (working copy)
@@ -41,6 +41,14 @@
#include "patchlevel.h"
#include <stdlib.h>
+#if defined(__hpux) && !defined(HAVE_STRTOULL)
+#if SIZEOF_LONG == 8
+# define strtoull strtoul
+#else
+# define strtoull __strtoull
+#endif
+#endif
+
#ifdef PHP_WIN32
#include "win32/unistd.h"
#if _MSC_VER <= 1300
|