From 604c28f8c11fe7ecb5ef3a8d28310db354f5f245 Mon Sep 17 00:00:00 2001 From: vscosta Date: Thu, 30 Oct 2014 07:39:10 +0000 Subject: [PATCH] Fix getpid warning include and use _getpid --- C/pl-yap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/C/pl-yap.c b/C/pl-yap.c index 32c394f6a..171c60cf4 100755 --- a/C/pl-yap.c +++ b/C/pl-yap.c @@ -18,6 +18,11 @@ #if HAVE_MATH_H #include #endif +#if __WINDOWS__ +#include + +#define getpid _getpid +#endif #ifdef HAVE_LIMITS_H #include