about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2014-05-06 23:31:44 +0200
committerAurelien Jarno <aurelien@aurel32.net>2014-05-07 00:15:23 +0200
commit3ce4555d432282fcfe963cc8809163e85ee0f71c (patch)
tree538cb13052a5339eb0c2a0bc22eb7147c691f603
parent25394eff67a3119011ffa04a1986be130a6b628d (diff)
downloadglibc-3ce4555d432282fcfe963cc8809163e85ee0f71c.tar.gz
glibc-3ce4555d432282fcfe963cc8809163e85ee0f71c.tar.xz
glibc-3ce4555d432282fcfe963cc8809163e85ee0f71c.zip
SPARC: add EFD_SEMAPHORE in <bits/eventfd.h> (BZ #16916)
EFD_SEMAPHORE has been added in the main <bits/eventfd.h>, but not in
the SPARC specific version. Fix that.

(cherry picked from commit 83df9ad0cc861ef24f08a88c5a4c055e2516d33c)
-rw-r--r--ChangeLog6
-rw-r--r--NEWS2
-rw-r--r--sysdeps/unix/sysv/linux/sparc/bits/eventfd.h2
3 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 15d560f36f..961f0dd40c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
+
+        [BZ# 16916]
+        * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
+        Define.
+
 2014-05-01  David S. Miller  <davem@davemloft.net>
 
 	[BZ #16885]
diff --git a/NEWS b/NEWS
index 5e0f699908..93175e1792 100644
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,7 @@ Version 2.18.1
 
 * The following bugs are resolved with this release:
 
-  15073, 15128, 15909, 15996, 16150, 16169, 16387, 16510, 16885.
+  15073, 15128, 15909, 15996, 16150, 16169, 16387, 16510, 16885, 16916.
 
 Version 2.18
 
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/eventfd.h b/sysdeps/unix/sysv/linux/sparc/bits/eventfd.h
index b0234d1a20..e348cc6fb6 100644
--- a/sysdeps/unix/sysv/linux/sparc/bits/eventfd.h
+++ b/sysdeps/unix/sysv/linux/sparc/bits/eventfd.h
@@ -22,6 +22,8 @@
 /* Flags for eventfd.  */
 enum
   {
+    EFD_SEMAPHORE = 0x000001,
+#define EFD_SEMAPHORE EFD_SEMAPHORE
     EFD_CLOEXEC = 0x400000,
 #define EFD_CLOEXEC EFD_CLOEXEC
     EFD_NONBLOCK = 0x004000