diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2019-01-17 17:52:15 +0100 |
---|---|---|
committer | Jan Stancek <jstancek@redhat.com> | 2019-01-18 15:15:32 +0100 |
commit | 6434b6f2b901b376ba2efa5652b76fc68f5e75e0 (patch) | |
tree | 0c8385ae86de7446cc89a53f091c74f4c4359210 /include | |
parent | 83e37131ab9213a48bcdaa66ece0d0d17c375ca2 (diff) |
lapi/regen.sh: Fix s390 check
On s390 (32 bit) only the "__s390__" macro is set by gcc and on
s390x (64 bit) both macros "__s390__" and "__s390x__" are set.
Therefore a check "#ifdef __s390__" is not sufficient for checking
32 bit Mainframe Linux systems since this is also true on s390x machines.
Fix this and generate the correct s390 check:
"#if defined(__s390__) && !defined(__s390x__)"
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Acked-by: Jan Stancek <jstancek@redhat.com>
Diffstat (limited to 'include')
-rwxr-xr-x | include/lapi/syscalls/regen.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lapi/syscalls/regen.sh b/include/lapi/syscalls/regen.sh index e106dd3bd..51d612e2a 100755 --- a/include/lapi/syscalls/regen.sh +++ b/include/lapi/syscalls/regen.sh @@ -77,6 +77,7 @@ for arch in $(cat "${srcdir}/order") ; do case ${arch} in sparc64) echo "#if defined(__sparc__) && defined(__arch64__)" ;; sparc) echo "#if defined(__sparc__) && !defined(__arch64__)" ;; + s390) echo "#if defined(__s390__) && !defined(__s390x__)" ;; *) echo "#ifdef __${arch}__" ;; esac while read line ; do |