summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-03-23 17:55:27 +0100
committerThomas Haller <thaller@redhat.com>2016-03-24 10:10:53 +0100
commit2c11e23c34628f5fe8bb9b6036fcc442d0d6a41d (patch)
tree194a2bb1daa647716c622e14b5c34b264f944756 /shared
parent2f6517df432bcbc1df6d74d824daa7c3ecdb3c2e (diff)
downloadNetworkManager-2c11e23c34628f5fe8bb9b6036fcc442d0d6a41d.tar.gz
shared: include <stdlib.h> in "nm-macros-internal.h"
"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.
Diffstat (limited to 'shared')
-rw-r--r--shared/nm-macros-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/nm-macros-internal.h b/shared/nm-macros-internal.h
index e87539218d..152cbf67ee 100644
--- a/shared/nm-macros-internal.h
+++ b/shared/nm-macros-internal.h
@@ -22,6 +22,8 @@
#ifndef __NM_MACROS_INTERNAL_H__
#define __NM_MACROS_INTERNAL_H__
+#include <stdlib.h>
+
/********************************************************/
#define nm_auto(fcn) __attribute ((cleanup(fcn)))