php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54934
Patch fix-build revision 2011-05-27 00:59 UTC by felipe@php.net

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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 07:01:28 2024 UTC