]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add missing #include for malloc/hooks.c code.
authorRoland McGrath <roland@hack.frob.com>
Thu, 21 Nov 2013 23:49:50 +0000 (15:49 -0800)
committerRoland McGrath <roland@hack.frob.com>
Thu, 21 Nov 2013 23:49:50 +0000 (15:49 -0800)
ChangeLog
malloc/malloc.c

index ee880972258aecf82e3d9b34624627b7b1e76bc1..b9201fc7ff06f154353b396446ecf9a5b9201ee7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-11-21  Roland McGrath  <roland@hack.frob.com>
 
+       * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
+       it's there.
+
        * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
 
 2013-11-21  Meador Inge  <meadori@codesourcery.com>
index 01817170572839e0e0ed3bedfa26b20f15de9aab..c8a5374e65798c4345fb52297418b83d9827d673 100644 (file)
 /* For va_arg, va_start, va_end.  */
 #include <stdarg.h>
 
+/* For MIN, MAX, powerof2.  */
+#include <sys/param.h>
+
 
 /*
   Debugging:
@@ -4875,8 +4878,6 @@ malloc_printerr(int action, const char *str, void *ptr)
     abort ();
 }
 
-#include <sys/param.h>
-
 /* We need a wrapper function for one of the additions of POSIX.  */
 int
 __posix_memalign (void **memptr, size_t alignment, size_t size)