diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2014-08-01 02:08:33 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2014-08-01 02:08:33 +0200 |
commit | 93a9f6188007dc425646062a01a15825af7f9d1d (patch) | |
tree | f3c7d31d1b70225073f11715d324f6f3851bb3df | |
parent | 779f2b37aa5d99f07747a6c2dac9c56633a0f431 (diff) | |
parent | 7b9e2881d8eab90007a83fce88c12dae5d5193f9 (diff) | |
download | Nim-93a9f6188007dc425646062a01a15825af7f9d1d.tar.gz |
Merge pull request #1432 from def-/posix-tflock
Add "struct" to POSIX flock
-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. |