| 11 |
|
extern "C" { |
| 12 |
|
#endif |
| 13 |
|
|
| 14 |
< |
#include <sys/types.h> |
| 14 |
> |
#include <errno.h> |
| 15 |
|
#ifdef _WIN32 |
| 16 |
< |
#include <windows.h> |
| 16 |
> |
#include <windows.h> /* DWORD etc. */ |
| 17 |
> |
typedef DWORD pid_t; |
| 18 |
> |
#include <process.h> /* getpid() and others */ |
| 19 |
|
#else |
| 20 |
|
#include <sys/param.h> |
| 19 |
– |
#include <unistd.h> |
| 21 |
|
#endif |
| 21 |
– |
#ifndef BSD |
| 22 |
– |
#include <errno.h> |
| 23 |
– |
#endif |
| 22 |
|
|
| 23 |
|
#include "paths.h" |
| 24 |
|
|
| 36 |
|
runtime, so that client modules can still use -1 as invalid PID. |
| 37 |
|
*/ |
| 38 |
|
|
| 41 |
– |
#ifdef _WIN32 |
| 42 |
– |
typedef DWORD pid_t; |
| 43 |
– |
#endif |
| 39 |
|
|
| 40 |
|
#ifndef PIPE_BUF |
| 41 |
|
#ifdef PIPSIZ |