Changeset 1230 in kBuild for trunk/src/kash
- Timestamp:
- Oct 8, 2007 10:49:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shinstance.c
r1229 r1230 26 26 27 27 #include <string.h> 28 #include <stdlib.h> 29 #ifndef _MSC_VER 30 # include <unistd.h> 31 # include <pwd.h> 32 extern char **environ; 33 #endif 28 34 #include "shinstance.h" 29 35 … … 45 51 if (psh) 46 52 { 53 /* the special stuff. */ 54 #ifdef _MSC_VER 55 psh->pid = _getpid(); 56 #else 57 psh->pid = getpid(); 58 #endif 59 47 60 /* memalloc.c */ 48 61 psh->stacknleft = MINSIZE; … … 110 123 # else 111 124 struct passwd *pwd = getpwnam(user); 112 return pwd ? pwd->pw_dir ;125 return pwd ? pwd->pw_dir : NULL; 113 126 # endif 114 127 #else … … 226 239 return CLK_TCK; 227 240 # else 228 return sysconf(_SC_CLK_TCK) 241 return sysconf(_SC_CLK_TCK); 229 242 # endif 230 243 #endif
Note:
See TracChangeset
for help on using the changeset viewer.