]> pd.if.org Git - pdclib.old/blobdiff - platform/win32/functions/signal/signal.c
win32: refer to errno, not _PDCLIB_errno
[pdclib.old] / 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;