Blame SOURCES/glibc-rh1505492-undef-ipc64.patch

c6d234
Fix -Wundef warnings related to __ASSUME_IPC64.  This was addressed
c6d234
differently upstream:
c6d234
c6d234
be481652f272acc117907ac30157cdac46aa1973
c6d234
Author: Andreas Schwab <schwab@suse.de>
c6d234
Date:   Tue Aug 18 10:29:30 2015 +0200
c6d234
c6d234
    Remove __ASSUME_IPC64
c6d234
c6d234
diff --git a/sysdeps/unix/sysv/linux/msgctl.c b/sysdeps/unix/sysv/linux/msgctl.c
c6d234
index 09d4dc11f779a63f..25f47ce6fdeb19c9 100644
c6d234
--- a/sysdeps/unix/sysv/linux/msgctl.c
c6d234
+++ b/sysdeps/unix/sysv/linux/msgctl.c
c6d234
@@ -65,7 +65,7 @@ compat_symbol (libc, __old_msgctl, msgctl, GLIBC_2_0);
c6d234
 int
c6d234
 __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
c6d234
 {
c6d234
-#if __ASSUME_IPC64 > 0
c6d234
+#ifdef __ASSUME_IPC64
c6d234
   return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl,
c6d234
 			 msqid, cmd | __IPC_64, 0, buf);
c6d234
 #else
c6d234
diff --git a/sysdeps/unix/sysv/linux/semctl.c b/sysdeps/unix/sysv/linux/semctl.c
c6d234
index 3a2f1b39cea657e5..f932fb70525a6876 100644
c6d234
--- a/sysdeps/unix/sysv/linux/semctl.c
c6d234
+++ b/sysdeps/unix/sysv/linux/semctl.c
c6d234
@@ -122,7 +122,7 @@ __new_semctl (int semid, int semnum, int cmd, ...)
c6d234
 
c6d234
   va_end (ap);
c6d234
 
c6d234
-#if __ASSUME_IPC64 > 0
c6d234
+#ifdef __ASSUME_IPC64
c6d234
   return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd | __IPC_64,
c6d234
 			 &arg;;
c6d234
 #else
c6d234
diff --git a/sysdeps/unix/sysv/linux/shmctl.c b/sysdeps/unix/sysv/linux/shmctl.c
c6d234
index f99ee77f92878b1b..378fda21ea699c73 100644
c6d234
--- a/sysdeps/unix/sysv/linux/shmctl.c
c6d234
+++ b/sysdeps/unix/sysv/linux/shmctl.c
c6d234
@@ -72,7 +72,7 @@ compat_symbol (libc, __old_shmctl, shmctl, GLIBC_2_0);
c6d234
 int
c6d234
 __new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
c6d234
 {
c6d234
-#if __ASSUME_IPC64 > 0
c6d234
+#ifdef __ASSUME_IPC64
c6d234
   return INLINE_SYSCALL (ipc, 5, IPCOP_shmctl, shmid, cmd | __IPC_64, 0,
c6d234
 			 buf);
c6d234
 #else