From da79fa86de93a077fd6eb192db23dfd2349f267c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gallo?= Date: Sun, 18 Mar 2012 19:21:52 +0000 Subject: [PATCH] [GB.VB] * BUG: fix compilation on Windows/Cygwin. [GB.SIGNAL] * BUG: fix compilation on Windows/Cygwin. git-svn-id: svn://localhost/gambas/trunk@4564 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/lib/signal/csignal.c | 5 ++++- main/lib/vb/vb.c | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/main/lib/signal/csignal.c b/main/lib/signal/csignal.c index c5a04f728..ef1feb224 100644 --- a/main/lib/signal/csignal.c +++ b/main/lib/signal/csignal.c @@ -40,7 +40,7 @@ #define SIGPWR -1 #endif -#ifndef OS_BSD +#if !defined(OS_BSD) && !defined(OS_CYGWIN) typedef struct siginfo siginfo_t; #endif @@ -286,7 +286,10 @@ GB_DESC CSignalDesc[] = GB_CONSTANT("SIGILL", "i", SIGILL), GB_CONSTANT("SIGTRAP", "i", SIGTRAP), GB_CONSTANT("SIGABRT", "i", SIGABRT), +#ifndef OS_CYGWIN + // Cygwin doesn't define this SIGNAL GB_CONSTANT("SIGIOT", "i", SIGIOT), +#endif GB_CONSTANT("SIGBUS", "i", SIGBUS), GB_CONSTANT("SIGFPE", "i", SIGFPE), GB_CONSTANT("SIGKILL", "i", SIGKILL), diff --git a/main/lib/vb/vb.c b/main/lib/vb/vb.c index bb12918f1..64048f9e9 100644 --- a/main/lib/vb/vb.c +++ b/main/lib/vb/vb.c @@ -26,7 +26,13 @@ #include "vb.h" #include "vbdate.h" #include -#include + +#ifdef OS_CYGWIN + #include +#else + #include +#endif + #include BEGIN_METHOD(CVB_val, GB_STRING str)