Fixes cwd for new windows on FreeBSD

This commit is contained in:
Stephen Boddy 2016-12-15 22:12:31 +01:00
parent 82e9a9bbfa
commit a13b3db7c8
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
"""
from ctypes import *
from ctypes.util import find_library
class sockaddr_storage(Structure):
"""struct sockaddr_storage, defined in /usr/include/sys/socket.h"""
@ -43,7 +44,7 @@ class kinfo_file(Structure):
('kf_sa_peer', sockaddr_storage),
]
libc = CDLL('libc.so')
libc = CDLL(find_library('c'))
uintlen = c_size_t(sizeof(c_uint))
ver = c_uint(0)