]> granicus.if.org Git - php/commitdiff
- Fixed bug #54934 (Unresolved symbol strtoull in HP-UX 11.11)
authorFelipe Pena <felipe@php.net>
Fri, 27 May 2011 23:31:30 +0000 (23:31 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 27 May 2011 23:31:30 +0000 (23:31 +0000)
ext/fileinfo/libmagic/apprentice.c

index 53fa8d5a1448ea6cb740aafd0bcc64c523c7bea7..eb1562e461422ee0cb9d8c10bfd1559c833216e7 100644 (file)
@@ -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