Allow Mercurial to build on HP-UX 11
Sat, 13 Aug 2005 12:41:00 -0800
changeset 867 0cd2ee61b10a03992daabee417949866318c308b
parent 866 6d6095823b82f32c7d20230c4b7fc18fe6343dae
child 896 01215ad0428341bf0b5806b199c54fe158d9affd
push id1
push dateWed, 18 Mar 2015 16:34:57 +0000
Allow Mercurial to build on HP-UX 11 Temporary fix to allow Mercurial to build on HP-UX 11, as the C compiler on HP-UX 11 doesn't support 'inline' qualifier. The '__inline' qualifier seemed to be supported, but not without first resolving other associated issues.
--- a/mercurial/bdiff.c
+++ b/mercurial/bdiff.c
@@ -7,16 +7,21 @@
  the GNU General Public License, incorporated herein by reference.
  Based roughly on Python difflib
 #include <Python.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef __hpux
+#define inline
 #ifdef _WIN32
 #ifdef _MSC_VER
 #define inline __inline
 typedef unsigned long uint32_t;
 #include <stdint.h>
 static uint32_t htonl(uint32_t x)