I have downloaded the timezone database library and am trying to compile it under windows to a DLL. When I do this, I get messages like:
1>c:\javatools\tzinfo\src\private.h(97): fatal error C1083: Cannot open include file: 'sys/wait.h': No such file or directory
and, of course, sys/wait.h is not ANSI C, which is the issue. I seem to recall windows have some near file names to this. Can I get an assist here?
Thanks.
fork(), wait() and waitpid() are defined by the POSIX standard, and Windows is not POSIX-compliant.
In order to have POSIX compliance under Windows, you should compile under Cygwin.
The analogous WinAPI functions are CreateProcess and GetProcessExitCode.
If you're looking for the wait() equivalent of MSVS, look no further than WaitForSingleObject().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With