The _getcwd() compatibility function on Microsoft CRT requires direct.h header to pull a proper function prototype. The (misleading) warning generated: bin\named\server.c(1074): warning C4047: '==': 'int' differs in levels of indirection from 'void *'