summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-04-06 10:16:06 +0200
committerThomas Haller <thaller@redhat.com>2016-04-11 11:26:36 +0200
commit9a1e0b97dab494a419a88960aba09f1c3ccd8b50 (patch)
treed0f2a2535e0a759f5717fcb5fa939a25b6b0f7d6
parent966fcdba1bcb56a663373bbfc5c7ac6ee7157275 (diff)
downloadNetworkManager-9a1e0b97dab494a419a88960aba09f1c3ccd8b50.tar.gz
shared: add _nm_packed macro for __attribute__((packed))
-rw-r--r--shared/nm-macros-internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/nm-macros-internal.h b/shared/nm-macros-internal.h
index 4176231800..384bca66fe 100644
--- a/shared/nm-macros-internal.h
+++ b/shared/nm-macros-internal.h
@@ -26,7 +26,9 @@
/********************************************************/
-#define nm_auto(fcn) __attribute ((cleanup(fcn)))
+#define _nm_packed __attribute__ ((packed))
+
+#define nm_auto(fcn) __attribute__ ((cleanup(fcn)))
/**
* nm_auto_free: