Browse Source

[lib] Fix typo in cpp conditional for malloc.h include

2006-06-28 Paul Jakma <paul.jakma@sun.com>

	* memory.c: Fix typo in cpp conditional around malloc.h, from
	  comment in bug #269.
Paul Jakma 13 years ago
parent
commit
74176d220b
2 changed files with 6 additions and 1 deletions
  1. 5 0
      lib/ChangeLog
  2. 1 1
      lib/memory.c

+ 5 - 0
lib/ChangeLog

@@ -1,3 +1,8 @@
+2006-06-28 Paul Jakma <paul.jakma@sun.com>
+
+	* memory.c: Fix typo in cpp conditional around malloc.h, from
+	  comment in bug #269.
+
 2006-06-27 Paul Jakma <paul.jakma@sun.com>
 
 	* route_types.awk: Remove setting the 'bare' numeric route type

+ 1 - 1
lib/memory.c

@@ -22,7 +22,7 @@
 
 #include <zebra.h>
 /* malloc.h is generally obsolete, however GNU Libc mallinfo wants it. */
-#if defined(HAVE_STDLIB_H) || (defined(GNU_LINUX) && defined(HAVE_MALLINFO))
+#if !defined(HAVE_STDLIB_H) || (defined(GNU_LINUX) && defined(HAVE_MALLINFO))
 #include <malloc.h>
 #endif /* !HAVE_STDLIB_H || HAVE_MALLINFO */