From: Branden Archer Date: Mon, 24 Jul 2017 02:58:44 +0000 (-0400) Subject: Define pid_t in check.h if on Windows X-Git-Tag: 0.12.0~6^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3bb3d6f25a22fc9b271d90a78602247200553f3;p=check Define pid_t in check.h if on Windows Windows will need the definition of pid_t for a function in check.h, and on Windows pid_t is not defined in sys/types.h. --- diff --git a/src/check.h.in b/src/check.h.in index 7a7c76e..8771146 100644 --- a/src/check.h.in +++ b/src/check.h.in @@ -63,6 +63,11 @@ CK_CPPSTART #include +#if _MSC_VER +/* define pid_t for Windows, as it is needed later */ +#define pid_t int +#endif /* _MSC_VER */ + /* * Used to create the linker script for hiding lib-local symbols. Shall * be put directly in front of the exported symbol.