summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2015-06-24 01:36:09 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2015-06-24 01:36:09 +0200
commit61336b2404c7b09b7ddb73d17426e6b291b15c9c (patch)
tree2036c1e74c63b44c516c1eefa06c9e9775bbb7ed
parentec33471aeec1e54d3f6ec79762f2f63307d12496 (diff)
downloadNim-61336b2404c7b09b7ddb73d17426e6b291b15c9c.tar.gz
Expose INET6_ADDRSTRLEN.
-rw-r--r--lib/posix/posix.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim
index 92bafe07d..9b9bf390a 100644
--- a/lib/posix/posix.nim
+++ b/lib/posix/posix.nim
@@ -1663,6 +1663,8 @@ var
 
   INET_ADDRSTRLEN* {.importc, header: "<netinet/in.h>".}: cint
     ## 16. Length of the string form for IP.
+  INET6_ADDRSTRLEN* {.importc, header: "<netinet/in.h>".}: cint
+    ## Length of the string form for IPv6.
 
   IPV6_JOIN_GROUP* {.importc, header: "<netinet/in.h>".}: cint
     ## Join a multicast group.