shared: include <stdlib.h> in "nm-macros-internal.h"
authorThomas Haller <thaller@redhat.com>
Wed, 23 Mar 2016 16:55:27 +0000 (17:55 +0100)
committerThomas Haller <thaller@redhat.com>
Thu, 24 Mar 2016 09:10:53 +0000 (10:10 +0100)
"nm-macros-internal.h" uses free() for the "nm_auto_free"
macro. Thus, as long as that code is there, we anyway must
include <stdlib.h> along the line.

Do it in "nm-macros-internal.h" to make the header self-contained.

shared/nm-macros-internal.h

index e875392..152cbf6 100644 (file)
@@ -22,6 +22,8 @@
 #ifndef __NM_MACROS_INTERNAL_H__
 #define __NM_MACROS_INTERNAL_H__
 
+#include <stdlib.h>
+
 /********************************************************/
 
 #define nm_auto(fcn) __attribute ((cleanup(fcn)))