From 1fc06629ff5722049c90e11e3fff0c6e93368635 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Mon, 16 Oct 2017 16:38:04 +0300 Subject: [PATCH] Add socket types on OSX --- klib/src/platform/osx/posix.def | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/klib/src/platform/osx/posix.def b/klib/src/platform/osx/posix.def index 664faf78274..bfab9a150e9 100644 --- a/klib/src/platform/osx/posix.def +++ b/klib/src/platform/osx/posix.def @@ -10,15 +10,13 @@ headers = alloca.h ar.h assert.h complex.h dirent.h dlfcn.h err.h errno.h fcntl. netinet/icmp6.h netinet/if_ether.h netinet/in.h netinet/in_systm.h \ netinet/ip.h netinet/ip6.h netinet/ip_icmp.h netinet/tcp.h netinet/udp.h \ sys/ioctl.h sys/ipc.h sys/mman.h sys/poll.h sys/ptrace.h \ - sys/queue.h sys/select.h sys/shm.h sys/stat.h \ + sys/queue.h sys/select.h sys/shm.h sys/socket.h sys/stat.h \ sys/syslimits.h sys/time.h sys/times.h sys/utsname.h sys/wait.h compilerOpts = -D_XOPEN_SOURCE linkerOpts = -ldl -lresolv --- -// cinterop -def klib/src/platform/osx/posix.def -o platform.posix.klib - // Wrapper to access errno variable. static int posix_errno() { return errno;