S390: Fix sem.h conformance test failures.
authorStefan Liebler <stli@linux.vnet.ibm.com>
Tue, 7 Jul 2015 14:11:14 +0000 (16:11 +0200)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Tue, 7 Jul 2015 14:11:14 +0000 (16:11 +0200)
On s390 the following tests are failing due to unkown types time_t, pid_t:
FAIL: conform/UNIX98/sys/sem.h/conform
FAIL: conform/XOPEN2K/sys/sem.h/conform
FAIL: conform/XOPEN2K8/sys/sem.h/conform
FAIL: conform/XPG3/sys/sem.h/conform
FAIL: conform/XPG4/sys/sem.h/conform

This patch changes the s390 specific sem.h and includes sys/types.h instead
of bits/types.h. All other archs include sys/types.h, too.
Including bits/wordsize.h is obselete, because it is already inlcuded in
sys/types.h -> bits/types.h.

ChangeLog:

* sysdeps/unix/sysv/linux/s390/bits/sem.h:
Include sys/types.h instead of bits/types.h.
Remove inclusion of bits/wordsize.h.

ChangeLog
sysdeps/unix/sysv/linux/s390/bits/sem.h

index e00fd0d..c8d8561 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
+
+       * sysdeps/unix/sysv/linux/s390/bits/sem.h:
+       Include sys/types.h instead of bits/types.h.
+       Remove inclusion of bits/wordsize.h.
+
 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
index 9f8cd47..2e12eff 100644 (file)
@@ -19,8 +19,7 @@
 # error "Never include <bits/sem.h> directly; use <sys/sem.h> instead."
 #endif
 
-#include <bits/types.h>
-#include <bits/wordsize.h>
+#include <sys/types.h>
 
 /* Flags for `semop'.  */
 #define SEM_UNDO       0x1000          /* undo the operation on exit */