olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

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

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