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
commit8199f8dcfcc959865f93d1191bbcba884621ae4e (patch)
treea141ba90bfea296684fb7cc645f6c7ee0e056d9c
parent845d0805a85ff62e022e66233cb136f6b3e69904 (diff)
downloadphp-git-8199f8dcfcc959865f93d1191bbcba884621ae4e.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