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

2014-09-18 Thread Andrew Piskorski
On Thu, Sep 18, 2014 at 12:24:12PM +0200, Gustaf Neumann wrote: > Am 17.09.14 23:19, schrieb Andrew Piskorski: > > The Naviserver makefiles often definite a LIB variable, e.g.: > > > >LIB = nsthread > What is the exact problem you see: is it the case, when LIB is set > in a Makefile (as cited),

Re: [naviserver-devel] pid_t missing on Windows

2014-09-18 Thread Gustaf Neumann
Am 18.09.14 18:33, schrieb Maurizio Martignano: > I still do not quite understand/explain why the nsthread module is so > different between Aolserver and Naviserver. And again as the two pieces of > software are implemented at the moment, the Aolserver version seems to be > more portable. not sure,

Re: [naviserver-devel] pid_t missing on Windows

2014-09-18 Thread Maurizio Martignano
Dear Gustav, This is ok. I still do not quite understand/explain why the nsthread module is so different between Aolserver and Naviserver. And again as the two pieces of software are implemented at the moment, the Aolserver version seems to be more portable. Thank you, Maurizio -Orig

Re: [naviserver-devel] NS_EXTERN set wrong on Windows?

2014-09-18 Thread Gustaf Neumann
Am 18.09.14 00:50, schrieb Andrew Piskorski: > AFAICT from reading that code, when using Microsoft's compiler > NSTHREAD_EXPORTS is never set, and thus NS_STORAGE_CLASS is never set > to NS_EXPORT, it is always set to NS_IMPORT and thus is wrong when > building nsthread. i think the intention was t

Re: [naviserver-devel] pid_t missing on Windows

2014-09-18 Thread Gustaf Neumann
historically, unix used "int" for pids. the open group / ieee standard defines pid_t [1], which is used e.g. for fork(), getpid(), kill() etc. on linux, mac os x etc. Therefore, the use of pid_t instead of "int" is a good thing, especially, since pids are passed around as arguments and returned

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

2014-09-18 Thread Gustaf Neumann
Am 17.09.14 23:19, schrieb Andrew Piskorski: > The Naviserver makefiles often definite a LIB variable, e.g.: > >LIB = nsthread What is the exact problem you see: is it the case, when LIB is set in a Makefile (as cited), or is the problem, when it is *not* set. In the latter case, "make" picks