]> granicus.if.org Git - sysstat/commitdiff
Add stdlib.h include file in common.h
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 10 Dec 2017 08:50:41 +0000 (09:50 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 10 Dec 2017 08:50:41 +0000 (09:50 +0100)
This is needed to define realloc() function used by SREALLOC() macro.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
common.h

index 02fafd2ec0a422e68282deb7ab2bb564f99fbdf7..b7a78093e100c11b58070c59e87c44174982ffea 100644 (file)
--- a/common.h
+++ b/common.h
@@ -12,6 +12,7 @@
 #include <time.h>
 #include <sched.h>     /* For __CPU_SETSIZE */
 #include <limits.h>
+#include <stdlib.h>
 
 #ifdef HAVE_SYS_SYSMACROS_H
 /* Needed on some non-glibc environments */