Add #if/#endif to last change to net.c