Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Partially revert the WIN32 changes
Feel free to open a new PR to add them back
  • Loading branch information
fantix committed Aug 27, 2024
commit fb95d4ec5e1b08ca61805358430ef39511f5e638
16 changes: 0 additions & 16 deletions uvloop/includes/system.h

This file was deleted.

12 changes: 8 additions & 4 deletions uvloop/includes/system.pxd
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
from libc.stdint cimport int8_t, uint64_t

cdef extern from "includes/system.h":
int ntohl(int) nogil
int htonl(int) nogil
int ntohs(int) nogil
cdef extern from "arpa/inet.h" nogil:

int ntohl(int)
int htonl(int)
int ntohs(int)


cdef extern from "sys/socket.h" nogil:

struct sockaddr:
unsigned short sa_family
Expand Down