diff --git a/bepascal/source/tools/stubgen.so/cpp/getopt.c b/bepascal/source/tools/stubgen.so/cpp/getopt.c index d87c250..8bfc527 100644 --- a/bepascal/source/tools/stubgen.so/cpp/getopt.c +++ b/bepascal/source/tools/stubgen.so/cpp/getopt.c @@ -74,6 +74,10 @@ #define getpid() GetCurrentProcessId() #endif +#ifdef __HAIKU__ +#include +#endif + #ifndef _ /* This is for other GNU distributions with internationalized messages. When compiling libc, the _ macro is predefined. */