1. Pypy
  2. Untitled project
  3. pypy


Ronan Lamy  committed 26582ea Merge

Merged in vext01/pypy/timeb_h (pull request #202)

OpenBSD will no longer have <sys/timeb.h> soon.

  • Participants
  • Parent commits f7b797f, 390d8f8
  • Branches default

Comments (0)

Files changed (2)

File pypy/doc/whatsnew-head.rst

View file
  • Ignore whitespace
 .. branch: better_ftime_detect2
 On OpenBSD do not pull in libcompat.a as it is about to be removed.
 And more generally, if you have gettimeofday(2) you will not need ftime(3).
+.. branch: timeb_h
+Remove dependency upon <sys/timeb.h> on OpenBSD. This will be disappearing
+along with libcompat.a.

File rpython/rtyper/module/ll_time.py

View file
  • Ignore whitespace
     FTIME = 'ftime'
     STRUCT_TIMEB = 'struct timeb'
     includes = [TIME_H, 'time.h', 'errno.h', 'sys/select.h',
-                'sys/types.h', 'unistd.h', 'sys/timeb.h',
+                'sys/types.h', 'unistd.h',
                 'sys/time.h', 'sys/resource.h']
+    if not sys.platform.startswith("openbsd"):
+        includes.append('sys/timeb.h')
     need_rusage = True