summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-16 19:46:28 +0100
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:12:57 +0200
commit7a5b9c2ca69f208862a0004925c88489d5a91b5e (patch)
tree1972e15806001ead699a8b8a3d031b6367b6501f /src/basic
parent5216c93baebfa4e129ea1fc6fffd2c842aaea839 (diff)
sd-lldp: move ETHERTYPE_LLDP to missing.h
After all, most ETHERTYPE variables are defined in the system headers, hence define these where we defined all other fill-ins for system headers.
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/missing.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/basic/missing.h b/src/basic/missing.h
index 0039fb0df..170f2be79 100644
--- a/src/basic/missing.h
+++ b/src/basic/missing.h
@@ -31,6 +31,7 @@
#include <linux/neighbour.h>
#include <linux/oom.h>
#include <linux/rtnetlink.h>
+#include <net/ethernet.h>
#include <stdlib.h>
#include <sys/resource.h>
#include <sys/syscall.h>
@@ -1181,4 +1182,8 @@ static inline key_serial_t request_key(const char *type, const char *description
#define char16_t uint16_t
#endif
+#ifndef ETHERTYPE_LLDP
+#define ETHERTYPE_LLDP 0x88cc
+#endif
+
#endif