chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5216c93
)
sd-lldp: move ETHERTYPE_LLDP to missing.h
author
Lennart Poettering
<lennart@poettering.net>
Tue, 16 Feb 2016 18:46:28 +0000
(19:46 +0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000
(10:12 +0200)
After all, most ETHERTYPE variables are defined in the system headers, hence
define these where we defined all other fill-ins for system headers.
src/basic/missing.h
patch
|
blob
|
history
diff --git
a/src/basic/missing.h
b/src/basic/missing.h
index 0039fb0dfcf167ac37ef4fa460dc81981dc665ca..170f2be7920d3b443406c1ee7015a05d5724c053 100644
(file)
--- 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