From 76639d5beba6a6d857ae0c95a0b5da117a3d2dfd Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Mon, 7 Jan 2013 15:10:17 +0000 Subject: [PATCH] win32: refer to errno, not _PDCLIB_errno --- platform/win32/functions/signal/signal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/win32/functions/signal/signal.c b/platform/win32/functions/signal/signal.c index e07877d..5045c8c 100644 --- a/platform/win32/functions/signal/signal.c +++ b/platform/win32/functions/signal/signal.c @@ -7,6 +7,7 @@ */ #include +#include #ifndef REGTEST @@ -56,7 +57,7 @@ void (*signal( int sig, void (*func)( int ) ) )( int ) /* The standard calls for an unspecified "positive value". You will probably want to define a specific value for this. */ - _PDCLIB_errno = 1; + errno = 1; return SIG_ERR; } return oldhandler; -- 2.40.0