diff options
author | Jacek Sieka <arnetheduck@gmail.com> | 2017-04-13 04:57:10 +0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-04-12 22:57:10 +0200 |
commit | e512358bc96b7be58bf4f2d5a2c5de75f119138a (patch) | |
tree | 6e850d378e87e93d441237042eb63f5f139f82ee /lib/posix/epoll.nim | |
parent | 926563f0e6c4fe13b8f88f58ac33ccd7826692f4 (diff) | |
download | Nim-e512358bc96b7be58bf4f2d5a2c5de75f119138a.tar.gz |
Linux abi take 3 (#5692)
* avoid generating object fields for imported types * fix some abi/type issues for linux_amd64
Diffstat (limited to 'lib/posix/epoll.nim')
-rw-r--r-- | lib/posix/epoll.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/posix/epoll.nim b/lib/posix/epoll.nim index 276dd812d..86b977576 100644 --- a/lib/posix/epoll.nim +++ b/lib/posix/epoll.nim @@ -38,8 +38,10 @@ type epoll_data* {.importc: "union epoll_data", header: "<sys/epoll.h>", pure, final.} = object # TODO: This is actually a union. #thePtr* {.importc: "ptr".}: pointer - fd* {.importc: "fd".}: cint # \ - #u32*: uint32 + fd* {.importc: "fd".}: cint + when defined(linux) and defined(amd64): + u32: uint32 # this field ensures that binary size is right - it cannot be + # used because its offset is wrong #u64*: uint64 epoll_event* {.importc: "struct epoll_event", header: "<sys/epoll.h>", pure, final.} = object |