projects
/
oweals
/
nmrpflash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3dfcc9
)
Don't redefine PACKED
author
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Fri, 5 Feb 2016 10:39:44 +0000
(12:39 +0200)
committer
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Fri, 5 Feb 2016 12:22:56 +0000
(14:22 +0200)
nmrp.c
patch
|
blob
|
history
diff --git
a/nmrp.c
b/nmrp.c
index 288bbb79ad164e61fad10ad74fd4b77504c4f214..1f31e0162aa2ef5300558b1d94cb94337f49cce7 100644
(file)
--- a/
nmrp.c
+++ b/
nmrp.c
@@
-36,9
+36,12
@@
#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,