Skip to content

Commit fb95d4e

Browse files
committed
Partially revert the WIN32 changes
Feel free to open a new PR to add them back
1 parent 7562c1e commit fb95d4e

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

uvloop/includes/system.h

-16
This file was deleted.

uvloop/includes/system.pxd

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
from libc.stdint cimport int8_t, uint64_t
22

3-
cdef extern from "includes/system.h":
4-
int ntohl(int) nogil
5-
int htonl(int) nogil
6-
int ntohs(int) nogil
3+
cdef extern from "arpa/inet.h" nogil:
4+
5+
int ntohl(int)
6+
int htonl(int)
7+
int ntohs(int)
8+
9+
10+
cdef extern from "sys/socket.h" nogil:
711

812
struct sockaddr:
913
unsigned short sa_family

0 commit comments

Comments
 (0)