commit b60fdf133c broke the SIOCGSTAMP[NS] ioctl fallbacks introduced in commit 2e554617e5, as well as use of these ioctls, by creating a situation where bits/ioctl.h could be included without __LONG_MAX being visible.
b60fdf133c
2e554617e5