Browse Source

add M_PERTURB define from glibc and Frank Mehnert writes: the following patch fixes a compile problem where malloc.h was included into a C++ file

Mike Frysinger 18 years ago
parent
commit
d4bfde8b5f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/malloc.h

+ 2 - 1
include/malloc.h

@@ -174,6 +174,7 @@ extern void malloc_stats(FILE *file);
 #define M_MMAP_THRESHOLD    -3
 #define M_MMAP_MAX          -4
 #define M_CHECK_ACTION      -5
+#define M_PERTURB           -6
 
 /* General SVID/XPG interface to tunable parameters. */
 extern int mallopt __MALLOC_P ((int __param, int __val));
@@ -182,7 +183,7 @@ extern int mallopt __MALLOC_P ((int __param, int __val));
 
 
 #ifdef __cplusplus
-}; /* end of extern "C" */
+} /* end of extern "C" */
 #endif
 
 #endif /* malloc.h */