1. Pypy
  2. Untitled project
  3. pypy

Commits

David Schneider  committed 9daab4f

fix translation on Macs

  • Participants
  • Parent commits a9d5c0c
  • Branches default

Comments (0)

Files changed (1)

File pypy/rpython/module/ll_os.py

View file
     _WIN32 = True
 else:
     _WIN32 = False
-
 if _WIN32:
     underscore_on_windows = '_'
 else:
     underscore_on_windows = ''
 
+_DARWIN = sys.platform.startswith('darwin')
+
 includes = []
 if not _WIN32:
     # XXX many of these includes are not portable at all
     includes += ['dirent.h', 'sys/stat.h',
                  'sys/times.h', 'utime.h', 'sys/types.h', 'unistd.h',
-                 'signal.h', 'sys/wait.h', 'fcntl.h', 'pty.h']
+                 'signal.h', 'sys/wait.h', 'fcntl.h']
+    if _DARWIN:
+        includes += ['util.h']
+    else:
+        includes += ['pty.h']
+
 else:
     includes += ['sys/utime.h']