From 292c13ca55d9674ec27016da3442bfe2feffd53d Mon Sep 17 00:00:00 2001 From: ocoursiere Date: Sun, 21 Oct 2012 02:52:56 +0000 Subject: [PATCH] Include string.h under Haiku to avoid a GCC 4 warning about incompatible implicit declaration of built-in function 'strlen'. --- bepascal/source/tools/stubgen.so/cpp/getopt.c | 4 ++++ 1 file changed, 4 insertions(+) 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. */