mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 07:00:05 +01:00
systemd: include <linux/sockios.h> in "sd-lldp.c" for SIOCGSTAMPNS
Avoid compiler error on Fedora 31:
CC src/systemd/src/libsystemd-network/libsystemd_nm_la-sd-lldp.lo
src/systemd/src/libsystemd-network/sd-lldp.c: In function ‘lldp_receive_datagram’:
src/systemd/src/libsystemd-network/sd-lldp.c:234:23: error: ‘SIOCGSTAMPNS’ undeclared (first use in this function); did you mean ‘SIOCGSTAMP_OLD’?
234 | if (ioctl(fd, SIOCGSTAMPNS, &ts) >= 0)
| ^~~~~~~~~~~~
| SIOCGSTAMP_OLD
(cherry picked from commit dac54598fb)
This commit is contained in:
parent
a03d784610
commit
3e0f540bc0
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
#include "nm-sd-adapt.h"
|
#include "nm-sd-adapt.h"
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
#include <linux/sockios.h>
|
||||||
|
|
||||||
#include "sd-lldp.h"
|
#include "sd-lldp.h"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue