]> git.puffer.fish Git - mirror/frr.git/commitdiff
[lib] Fix typo in cpp conditional for malloc.h include
authorPaul Jakma <paul.jakma@sun.com>
Fri, 30 Jun 2006 16:49:02 +0000 (16:49 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Fri, 30 Jun 2006 16:49:02 +0000 (16:49 +0000)
2006-06-28 Paul Jakma <paul.jakma@sun.com>

* memory.c: Fix typo in cpp conditional around malloc.h, from
  comment in bug #269.

lib/ChangeLog
lib/memory.c

index 89f017a1c83e71847de9f655dbbe03098089da49..5f215d625bc0584cb95095ef0e23b7ba8e10e6ce 100644 (file)
@@ -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
index 1141e4057066e77fa0483e3da0dcc8a68eb6907a..eb670722b19fc4ae4cf1ddd31bbf0ab6d0547593 100644 (file)
@@ -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 */