diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Kbuild | 1 | ||||
-rw-r--r-- | win32/process.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/win32/Kbuild b/win32/Kbuild index 85f5ca7c4..22f8252d0 100644 --- a/win32/Kbuild +++ b/win32/Kbuild | |||
@@ -6,3 +6,4 @@ lib-y:= | |||
6 | 6 | ||
7 | lib-$(CONFIG_PLATFORM_MINGW32) += fnmatch.o | 7 | lib-$(CONFIG_PLATFORM_MINGW32) += fnmatch.o |
8 | lib-$(CONFIG_PLATFORM_MINGW32) += mingw.o | 8 | lib-$(CONFIG_PLATFORM_MINGW32) += mingw.o |
9 | lib-$(CONFIG_PLATFORM_MINGW32) += process.o | ||
diff --git a/win32/process.c b/win32/process.c new file mode 100644 index 000000000..77d19fb9a --- /dev/null +++ b/win32/process.c | |||
@@ -0,0 +1,10 @@ | |||
1 | #include "libbb.h" | ||
2 | |||
3 | int waitpid(pid_t pid, int *status, unsigned options) | ||
4 | { | ||
5 | /* Windows does not understand parent-child */ | ||
6 | if (options == 0 && pid != -1) | ||
7 | return _cwait(status, pid, 0); | ||
8 | errno = EINVAL; | ||
9 | return -1; | ||
10 | } | ||