On my machine IPX definitions are provided by netipx/ipx.h, which is apparently part of glibc. I guess this is something that only affects environments with alternate libcs?
Should we instead define HAS_IPX based on whether netipx/ipx.h or linux/ipx.h is present?