From: bpringlemeir Date: Thu, 7 Aug 2008 02:51:59 +0000 (+0000) Subject: Allow compile on apple platforms. osd.c X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/commitdiff_plain/fb3f1eff7c241950ec0796edf281cf3a0c277841 Allow compile on apple platforms. osd.c Use pid_t instead of __pid_t as per open group. --- diff --git a/src/osd.c b/src/osd.c index c37f1ea..0bf7a8b 100644 --- a/src/osd.c +++ b/src/osd.c @@ -516,7 +516,7 @@ osd_getPid () # if defined (WIN32) || defined (OS2) && defined (__IBMC__) int pid = _getpid (); # else - __pid_t pid = getpid (); + pid_t pid = getpid (); # endif return (int) pid; @@ -862,7 +862,7 @@ static void osd_setWorkingDirectory (void) # if defined (UNIX) char *buf = dmalloc (sizeof (*buf) * MAXPATHLEN); char *cwd = getcwd (buf, MAXPATHLEN); -#else if defined (OS2) +#elif defined (OS2) char *buf = dmalloc (sizeof (*buf) * MAXPATHLEN); char *cwd = _getcwd2 (buf, MAXPATHLEN); char *slash;