diff --git a/examples/signal.nim b/examples/signal.nim index b08d10d..60771cc 100644 --- a/examples/signal.nim +++ b/examples/signal.nim @@ -1,13 +1,15 @@ import system/ansi_c -export SIG_DFL, SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM +export SIG_DFL, SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV when not defined(windows): - export SIGPIPE + export SIGPIPE, SIGTERM var SIG_IGN* {.importc: "SIG_IGN", header: "".}: cint SIGHUP* {.importc: "SIGHUP", header: "".}: cint SIGQUIT* {.importc: "SIGQUIT", header: "".}: cint +else: + const SIGTERM* = cint(15) type CSighandlerT = proc (a: cint) {.noconv.}