11 |
|
extern "C" { |
12 |
|
#endif |
13 |
|
|
14 |
< |
|
15 |
< |
#include "copyright.h" |
16 |
< |
|
17 |
< |
#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> |
22 |
– |
#include <unistd.h> |
21 |
|
#endif |
24 |
– |
#ifndef BSD |
25 |
– |
#include <errno.h> |
26 |
– |
#endif |
22 |
|
|
23 |
|
#include "paths.h" |
24 |
|
|
36 |
|
runtime, so that client modules can still use -1 as invalid PID. |
37 |
|
*/ |
38 |
|
|
44 |
– |
#ifdef _WIN32 |
45 |
– |
typedef DWORD pid_t; |
46 |
– |
#endif |
39 |
|
|
40 |
|
#ifndef PIPE_BUF |
41 |
|
#ifdef PIPSIZ |