From e3bb3d6f25a22fc9b271d90a78602247200553f3 Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Sun, 23 Jul 2017 22:58:44 -0400 Subject: [PATCH] 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. --- src/check.h.in | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.50.1