Author: Armin Rigo <[email protected]>
Branch:
Changeset: r74358:94d0614584c0
Date: 2014-11-06 22:16 +0100
http://bitbucket.org/pypy/pypy/changeset/94d0614584c0/
Log: fix for OS/X translation (shown by hippy)
diff --git a/rpython/rlib/_rsocket_rffi.py b/rpython/rlib/_rsocket_rffi.py
--- a/rpython/rlib/_rsocket_rffi.py
+++ b/rpython/rlib/_rsocket_rffi.py
@@ -499,7 +499,7 @@
getnameinfo = external('getnameinfo', [sockaddr_ptr, socklen_t, CCHARP,
size_t, CCHARP, size_t, rffi.INT], rffi.INT)
-if sys.platform.startswith("openbsd"):
+if sys.platform.startswith("openbsd") or sys.platform.startswith("darwin"):
htonl = external('htonl', [rffi.UINT], rffi.UINT, releasegil=False,
macro=True)
htons = external('htons', [rffi.USHORT], rffi.USHORT, releasegil=False,
macro=True)
ntohl = external('ntohl', [rffi.UINT], rffi.UINT, releasegil=False,
macro=True)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit