summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-05-27 23:31:30 +0000
committerFelipe Pena <felipe@php.net>2011-05-27 23:31:30 +0000
commit3dcb2569199097c76c5d80118fe3c6acf1fa47a5 (patch)
tree568eda9f4b48c2a9699711434ff7e733bc15227a
parentc5e56ff90c1051bf6a8765fcf7b627b28b2459f5 (diff)
downloadphp-git-3dcb2569199097c76c5d80118fe3c6acf1fa47a5.tar.gz
- Fixed bug #54934 (Unresolved symbol strtoull in HP-UX 11.11)
-rw-r--r--ext/fileinfo/libmagic/apprentice.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/fileinfo/libmagic/apprentice.c b/ext/fileinfo/libmagic/apprentice.c
index 53fa8d5a14..eb1562e461 100644
--- a/ext/fileinfo/libmagic/apprentice.c
+++ b/ext/fileinfo/libmagic/apprentice.c
@@ -41,6 +41,14 @@ FILE_RCSID("@(#)$File: apprentice.c,v 1.151 2009/03/18 15:19:23 christos Exp $")
#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