In file included from ../src/udev/net/ethtool-util.c:22:0:
/usr/include/linux/ethtool.h: In function ‘ethtool_validate_speed’:
/usr/include/linux/ethtool.h:1321:18: error: ‘INT_MAX’ undeclared (first use in this function)
return speed <= INT_MAX || speed == SPEED_UNKNOWN;
^
/usr/include/linux/ethtool.h:1321:18: note: each undeclared identifier is reported only once for each function it appears in
...I think you need to cherry-pick 14e2037902d65213842b4e40305ff54a64abbcb6
When building systemd with this kernel:
In file included from ../src/ udev/net/ ethtool- util.c: 22:0: linux/ethtool. h: In function ‘ethtool_ validate_ speed’: linux/ethtool. h:1321: 18: error: ‘INT_MAX’ undeclared (first use in this function) linux/ethtool. h:1321: 18: note: each undeclared identifier is reported only once for each function it appears in
/usr/include/
/usr/include/
return speed <= INT_MAX || speed == SPEED_UNKNOWN;
^
/usr/include/
...I think you need to cherry-pick 14e2037902d6521 3842b4e40305ff5 4a64abbcb6