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 3811a68389)
This commit is contained in:
Lubomir Rintel 2015-05-15 16:38:10 +02:00
parent 529a16279d
commit 7f84150e9f

View file

@ -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)
{