Fix HP-UX build
This commit is contained in:
@@ -10,3 +10,4 @@ x86_pcrel_test
|
||||
aix-ibm-xlc
|
||||
fix-grammar
|
||||
sparc-v8-aggregate-returns
|
||||
hpux-mallinfo
|
||||
|
||||
0
.pc/hpux-mallinfo/.timestamp
Normal file
0
.pc/hpux-mallinfo/.timestamp
Normal file
4435
.pc/hpux-mallinfo/ChangeLog
Normal file
4435
.pc/hpux-mallinfo/ChangeLog
Normal file
File diff suppressed because it is too large
Load Diff
5158
.pc/hpux-mallinfo/src/dlmalloc.c
Normal file
5158
.pc/hpux-mallinfo/src/dlmalloc.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,8 @@
|
||||
2011-02-08 Oren Held <orenhe@il.ibm.com>
|
||||
|
||||
* src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
|
||||
redefinition of mallinfo on HP-UX.
|
||||
|
||||
2011-02-08 Ginn Chen <ginn.chen@oracle.com>
|
||||
|
||||
* src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
|
||||
|
||||
27
patches/hpux-mallinfo
Normal file
27
patches/hpux-mallinfo
Normal file
@@ -0,0 +1,27 @@
|
||||
Index: libffi/ChangeLog
|
||||
===================================================================
|
||||
--- libffi.orig/ChangeLog
|
||||
+++ libffi/ChangeLog
|
||||
@@ -1,3 +1,8 @@
|
||||
+2011-02-08 Oren Held <orenhe@il.ibm.com>
|
||||
+
|
||||
+ * src/dlmalloc.c (_STRUCT_MALLINFO): Define in order to avoid
|
||||
+ redefinition of mallinfo on HP-UX.
|
||||
+
|
||||
2011-02-08 Ginn Chen <ginn.chen@oracle.com>
|
||||
|
||||
* src/sparc/ffi.c (ffi_call): Make compatible with Solaris Studio
|
||||
Index: libffi/src/dlmalloc.c
|
||||
===================================================================
|
||||
--- libffi.orig/src/dlmalloc.c
|
||||
+++ libffi/src/dlmalloc.c
|
||||
@@ -622,6 +622,9 @@ DEFAULT_MMAP_THRESHOLD default: 25
|
||||
#include "/usr/include/malloc.h"
|
||||
#else /* HAVE_USR_INCLUDE_MALLOC_H */
|
||||
|
||||
+/* HP-UX's stdlib.h redefines mallinfo unless _STRUCT_MALLINFO is defined */
|
||||
+#define _STRUCT_MALLINFO
|
||||
+
|
||||
struct mallinfo {
|
||||
MALLINFO_FIELD_TYPE arena; /* non-mmapped space allocated from system */
|
||||
MALLINFO_FIELD_TYPE ordblks; /* number of free chunks */
|
||||
@@ -10,3 +10,4 @@ x86_pcrel_test
|
||||
aix-ibm-xlc
|
||||
fix-grammar
|
||||
sparc-v8-aggregate-returns
|
||||
hpux-mallinfo
|
||||
|
||||
@@ -622,6 +622,9 @@ DEFAULT_MMAP_THRESHOLD default: 256K
|
||||
#include "/usr/include/malloc.h"
|
||||
#else /* HAVE_USR_INCLUDE_MALLOC_H */
|
||||
|
||||
/* HP-UX's stdlib.h redefines mallinfo unless _STRUCT_MALLINFO is defined */
|
||||
#define _STRUCT_MALLINFO
|
||||
|
||||
struct mallinfo {
|
||||
MALLINFO_FIELD_TYPE arena; /* non-mmapped space allocated from system */
|
||||
MALLINFO_FIELD_TYPE ordblks; /* number of free chunks */
|
||||
|
||||
Reference in New Issue
Block a user