00001
00002
00003
00004 #ifndef _LIBU_GETPID_H_
00005 #define _LIBU_GETPID_H_
00006 #include <u/libu_conf.h>
00007
00008 #ifdef HAVE_GETPID
00009 #include <sys/types.h>
00010 #include <unistd.h>
00011 #else
00012
00013 #ifdef OS_WIN
00014 #include <windows.h>
00015 typedef DWORD pid_t;
00016 #else
00017 typedef unsigned int pid_t;
00018 #endif
00019
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023
00024 pid_t getpid(void);
00025
00026 #ifdef __cplusplus
00027 }
00028 #endif
00029
00030 #endif
00031
00032 #endif