Don't redefine PACKED
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Fri, 5 Feb 2016 10:39:44 +0000 (12:39 +0200)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Fri, 5 Feb 2016 12:22:56 +0000 (14:22 +0200)
nmrp.c

diff --git a/nmrp.c b/nmrp.c
index 288bbb79ad164e61fad10ad74fd4b77504c4f214..1f31e0162aa2ef5300558b1d94cb94337f49cce7 100644 (file)
--- a/nmrp.c
+++ b/nmrp.c
 
 #define ETH_P_NMRP 0x0912
 #define IP_LEN 4
-#define PACKED __attribute__((__packed__))
 #define MAX_LOOP_RECV 1024
 
+#ifndef PACKED
+#define PACKED __attribute__((__packed__))
+#endif
+
 enum nmrp_code {
        NMRP_C_NONE = 0,
        NMRP_C_ADVERTISE = 1,