summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/posix/posix_other.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/posix/posix_other.nim b/lib/posix/posix_other.nim
index ba1dd89ed..99d67824e 100644
--- a/lib/posix/posix_other.nim
+++ b/lib/posix/posix_other.nim
@@ -410,7 +410,7 @@ else:
 
 type
   Socklen* {.importc: "socklen_t", header: "<sys/socket.h>".} = cuint
-  TSa_Family* {.importc: "sa_family_t", header: "<sys/socket.h>".} = cushort
+  TSa_Family* {.importc: "sa_family_t", header: "<sys/socket.h>".} = cint
 
   SockAddr* {.importc: "struct sockaddr", header: "<sys/socket.h>",
               pure, final.} = object ## struct sockaddr