Why remove this code? It could be wrapped around #if defined(__NetBSD__) instead.