[pypy-commit] pypy default: fix for OS/X translation (shown by hippy)
arigo
noreply at buildbot.pypy.org
Thu Nov 6 22:16:51 CET 2014
Author: Armin Rigo <arigo at tunes.org>
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)
More information about the pypy-commit
mailing list