diff --git a/posix/getopt.c b/posix/getopt.c index fdc19c5a7f..e4ae3340e8 100644 --- a/posix/getopt.c +++ b/posix/getopt.c @@ -64,6 +64,19 @@ Cambridge, MA 02139, USA. */ #include #endif /* GNU C library. */ +#ifdef VMS +#include +#if HAVE_STRING_H - 0 +#include +#endif +#endif + +#ifdef WIN32 +/* It's not Unix, really. See? Capital letters. */ +#include +#define getpid() GetCurrentProcessId() +#endif + #ifndef _ /* This is for other GNU distributions with internationalized messages. When compiling libc, the _ macro is predefined. */