##// END OF EJS Templates
osutil: c_ssize_t is only available in Python >= 2.7
Bryan O'Sullivan -
r27512:e2aa9c40 default
parent child Browse files
Show More
@@ -105,7 +105,7 b" if os.name != 'nt':"
105
105
106 _libc = ctypes.CDLL(ctypes.util.find_library('c'), use_errno=True)
106 _libc = ctypes.CDLL(ctypes.util.find_library('c'), use_errno=True)
107 _recvmsg = _libc.recvmsg
107 _recvmsg = _libc.recvmsg
108 _recvmsg.restype = ctypes.c_ssize_t
108 _recvmsg.restype = getattr(ctypes, 'c_ssize_t', ctypes.c_long)
109 _recvmsg.argtypes = (ctypes.c_int, ctypes.POINTER(_msghdr), ctypes.c_int)
109 _recvmsg.argtypes = (ctypes.c_int, ctypes.POINTER(_msghdr), ctypes.c_int)
110
110
111 def _CMSG_FIRSTHDR(msgh):
111 def _CMSG_FIRSTHDR(msgh):
General Comments 0
You need to be logged in to leave comments. Login now