[naviserver-devel] LIB nmake and environment variables collide on Windows

2014-09-17 Thread Andrew Piskorski
The Naviserver makefiles often definite a LIB variable, e.g.: LIB = nsthread However, on Windows the LIB environment variable is a semicolon separated list of paths where the linker will look for libraries: http://msdn.microsoft.com/en-us/library/6y6t9esh This makes it hard to set the LIB l

[naviserver-devel] NS_EXTERN set wrong on Windows?

2014-09-17 Thread Andrew Piskorski
In my Windows build work, I'm getting a lot of warnings like this one: master.c(67) : warning C4273: 'Ns_MasterLock' : inconsistent dll linkage ..\include\nsthread.h(597) : see previous definition of 'Ns_MasterLock' The definition is of course in nsthread/master.c, which starts like so:

[naviserver-devel] pid_t missing on Windows

2014-09-17 Thread Andrew Piskorski
On Windows with the VC 2012 compiler I get this error, which seems to then break a lot of other important stuff downstream: thread.c(55) : error C2061: syntax error : identifier 'pid_t' Is pid_t defined anywhere for Windows? AFAICT it is not. Adding this in an appropriate spot in nsthread.h m

Re: [naviserver-devel] pid_t missing on Windows

2014-09-17 Thread Maurizio Martignano
Dear Andrew, Handles in windows are void pointers. 32 bit void pointers in Windows 32 and 64 bit void pointers in Windows 64 (obviously). However in WIN64 only the less significant 32 bits of a handle are used for compatibility and interoperability reasons. So having typedef int pid_t; or typedef