summary refs log tree commit diff stats
path: root/lib/posix/posix_linux_amd64.nim
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2017-05-16 20:45:10 +0800
committerDominik Picheta <dominikpicheta@googlemail.com>2017-05-16 13:45:09 +0100
commit797301ace8f0ce7e3e43eac9d5fbb11c0f6f615a (patch)
tree387e455f0d33c6fa76f0b87ea532c07b6997b0c6 /lib/posix/posix_linux_amd64.nim
parent224eec595a6112c7aa3a4c06afacc99167580464 (diff)
downloadNim-797301ace8f0ce7e3e43eac9d5fbb11c0f6f615a.tar.gz
add back SIG_IGN, SIG_DFL and friends to posix.nim (#5820)
* add back SIG_IGN, SIG_DFL and friends to posix.nim

accidentally wiped by ce86b4ad78aae11f62c50e4f46e8ab2a124356b4

* move deprecated sig_hold after consts include
Diffstat (limited to 'lib/posix/posix_linux_amd64.nim')
-rw-r--r--lib/posix/posix_linux_amd64.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/posix/posix_linux_amd64.nim b/lib/posix/posix_linux_amd64.nim
index 70f7e710f..c44128b16 100644
--- a/lib/posix/posix_linux_amd64.nim
+++ b/lib/posix/posix_linux_amd64.nim
@@ -36,6 +36,9 @@ type
 
 {.deprecated: [TSocketHandle: SocketHandle].}
 
+# not detected by detect.nim, guarded by #ifdef __USE_UNIX98 in glibc
+const SIG_HOLD* = cast[SigHandler](2)
+
 type
   Timespec* {.importc: "struct timespec",
                header: "<time.h>", final, pure.} = object ## struct timespec