platform: fix build using our copy of header "linux-headers/ethtool.h"

Fixes: 34d48d2596 ('platform: clear all BASE types when setting advertised modes for ethernet autoneg')
This commit is contained in:
Thomas Haller 2021-09-08 12:55:48 +02:00
parent 52d18db0e3
commit 426491a500
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -7,6 +7,10 @@
#include "nm-platform-utils.h"
/* <linux/mii.h> includes <linux/ethtool.h>. We thus need to include
* our copy first and violate the common order of includes. */
#include "linux-headers/ethtool.h"
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/sockios.h>
@ -17,7 +21,6 @@
#include <fcntl.h>
#include <libudev.h>
#include "linux-headers/ethtool.h"
#include "libnm-base/nm-ethtool-base.h"
#include "libnm-log-core/nm-logging.h"
#include "libnm-glib-aux/nm-time-utils.h"