summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-05-15 16:38:10 +0200
committerLubomir Rintel <lkundrak@v3.sk>2015-06-18 13:23:56 +0200
commit7f84150e9f6aa7e900d70178e0fc0acc6cfba651 (patch)
tree58aa02465f21a866a5bb88805413139872fb65b5
parent529a16279dcabfb48df82fada39915b3e12881e5 (diff)
systemd-dhcp: fix build with Linux 3.2.0 headers
Fixes build on Ubuntu 12.04. systemd/src/libsystemd-network/dhcp-network.c: In function '_bind_raw_socket': systemd/src/libsystemd-network/dhcp-network.c:75:17: error: 'BPF_XOR' undeclared (first use in this function) systemd/src/libsystemd-network/dhcp-network.c:75:17: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [libsystemd_nm_la-dhcp-network.lo] Error 1 (cherry picked from commit 3811a68389b9277533f2eee8372927ca6238653e)
-rw-r--r--src/dhcp-manager/systemd-dhcp/nm-sd-adapt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dhcp-manager/systemd-dhcp/nm-sd-adapt.h b/src/dhcp-manager/systemd-dhcp/nm-sd-adapt.h
index 6d500f425..f8856a1bd 100644
--- a/src/dhcp-manager/systemd-dhcp/nm-sd-adapt.h
+++ b/src/dhcp-manager/systemd-dhcp/nm-sd-adapt.h
@@ -38,6 +38,11 @@
#include "nm-logging.h"
+/* Missing in Linux 3.2.0, in Ubuntu 12.04 */
+#ifndef BPF_XOR
+#define BPF_XOR 0xa0
+#endif
+
static inline guint32
_slog_level_to_nm (int slevel)
{