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
-Original Message- From: Gustaf Neumann [mailto:neum...@wu.ac.at] Sent: 18 September 2014 13:51 To: naviserver-devel@lists.sourceforge.net Subject: Re: [naviserver-devel] pid_t missing on Windows historically, unix used "int" for pids. the open group / ieee standard defines pid_t [1],

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] pid_t missing on Windows

2014-09-17 Thread Maurizio Martignano
, Maurizio -Original Message- From: Andrew Piskorski [mailto:a...@piskorski.com] Sent: 18 September 2014 01:26 To: naviserver-devel@lists.sourceforge.net Subject: [naviserver-devel] pid_t missing on Windows On Windows with the VC 2012 compiler I get this error, which seems to then break a lot

[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