]> pd.if.org Git - pdclib.old/commitdiff
win32: refer to errno, not _PDCLIB_errno
authorOwen Shepherd <owen.shepherd@e43.eu>
Mon, 7 Jan 2013 15:10:17 +0000 (15:10 +0000)
committerOwen Shepherd <owen.shepherd@e43.eu>
Mon, 7 Jan 2013 15:10:17 +0000 (15:10 +0000)
platform/win32/functions/signal/signal.c

index e07877d248f49e579d491121d220c8860bd0ded7..5045c8ccf777775ecb47d192aeb6503778800d4b 100644 (file)
@@ -7,6 +7,7 @@
 */
 
 #include <signal.h>
+#include <errno.h>
 
 #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;