From 745d9bcae7f34029344d5a26ba678d1d015768bd Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Fri, 18 Jun 2010 18:00:27 -0400 Subject: [PATCH] Windows: Pull required declarations into roken.h.in --- lib/roken/roken.h.in | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 01e457897..561257fff 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -125,6 +125,32 @@ typedef uint64_t u_int64_t; #define UNREACHABLE(x) x #define UNUSED_ARGUMENT(x) ((void) x) +#define RETSIGTYPE void + +#define VOID_RETSIGTYPE 1 + +#ifdef VOID_RETSIGTYPE +#define SIGRETURN(x) return +#else +#define SIGRETURN(x) return (RETSIGTYPE)(x) +#endif + +#ifndef CPP_ONLY + +typedef int pid_t; + +typedef unsigned int gid_t; + +typedef unsigned int uid_t; + +typedef unsigned short mode_t; + +#endif + +#ifndef __cplusplus +#define inline __inline +#endif + #else #define UNREACHABLE(x)