summary refs log tree commit diff stats
path: root/lib/posix
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2014-07-31 11:28:26 +0200
committerdef <dennis@felsin9.de>2014-07-31 11:28:26 +0200
commit7b9e2881d8eab90007a83fce88c12dae5d5193f9 (patch)
treef3c7d31d1b70225073f11715d324f6f3851bb3df /lib/posix
parent779f2b37aa5d99f07747a6c2dac9c56633a0f431 (diff)
downloadNim-7b9e2881d8eab90007a83fce88c12dae5d5193f9.tar.gz
Add "struct" to POSIX flock
Diffstat (limited to 'lib/posix')
-rw-r--r--lib/posix/posix.nim2
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.