]> andersk Git - splint.git/blobdiff - src/osd.c
Fixed problem with assertion checking for negative shifts in
[splint.git] / src / osd.c
index 653a0ee8526867f7e74ae4181892fbdb78cc7263..d6ca8a5efc0caa28ff3c2104af76987da4742967 100644 (file)
--- a/src/osd.c
+++ b/src/osd.c
@@ -452,7 +452,7 @@ nextdir (d_char *current_dir, d_char *dir, size_t *len)
 # endif
 }
 
-# ifdef WIN32
+# if defined (WIN32) || defined (OS2) && defined (__IBMC__)
 extern /*@external@*/ int _flushall (void) /*@modifies fileSystem@*/ ;
 # endif
 
@@ -463,7 +463,7 @@ int osd_system (cstring cmd)
 {
   int res;
     /* system ("printenv"); */
-# ifdef WIN32
+# if defined (WIN32) || defined (OS2) && defined (__IBMC__)
   (void) _flushall (); 
 # endif
 
@@ -514,7 +514,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;
This page took 0.05294 seconds and 4 git commands to generate.