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:
Thomas Haller 2020-03-06 11:47:09 +01:00
parent a03d784610
commit 3e0f540bc0

View file

@ -21,6 +21,7 @@
#include "nm-sd-adapt.h"
#include <arpa/inet.h>
#include <linux/sockios.h>
#include "sd-lldp.h"