diff options
author | def <dennis@felsin9.de> | 2014-07-31 11:28:26 +0200 |
---|---|---|
committer | def <dennis@felsin9.de> | 2014-07-31 11:28:26 +0200 |
commit | 7b9e2881d8eab90007a83fce88c12dae5d5193f9 (patch) | |
tree | f3c7d31d1b70225073f11715d324f6f3851bb3df /lib/posix | |
parent | 779f2b37aa5d99f07747a6c2dac9c56633a0f431 (diff) | |
download | Nim-7b9e2881d8eab90007a83fce88c12dae5d5193f9.tar.gz |
Add "struct" to POSIX flock
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/posix.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index 8e66336c2..a5ee05abb 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -90,7 +90,7 @@ type d_ino*: Tino ## File serial number. d_name*: array [0..255, char] ## Name of entry. - Tflock* {.importc: "flock", final, pure, + Tflock* {.importc: "struct flock", final, pure, header: "<fcntl.h>".} = object ## flock type l_type*: cshort ## Type of lock; F_RDLCK, F_WRLCK, F_UNLCK. l_whence*: cshort ## Flag for starting offset. |