This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMITTED] Include atomic.h


The functions use atomic_* functions but don't include atomic.h
directly.

Siddhesh

commit 766c4a363d5487dde04bb5e968c3db8b383ec3c2
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Tue Apr 22 16:57:49 2014 +0530

    Include atomic.h in sem_wait.c and sem_trywait.c

diff --git a/ChangeLog b/ChangeLog
index 1d42c68..8c0f2a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	* nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
+	* nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
+
 2014-04-22  Will Newton  <will.newton@linaro.org>
 	    Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
 
diff --git a/nptl/sysdeps/unix/sysv/linux/sem_trywait.c b/nptl/sysdeps/unix/sysv/linux/sem_trywait.c
index aa1775a..94c323c 100644
--- a/nptl/sysdeps/unix/sysv/linux/sem_trywait.c
+++ b/nptl/sysdeps/unix/sysv/linux/sem_trywait.c
@@ -22,6 +22,7 @@
 #include <lowlevellock.h>
 #include <internaltypes.h>
 #include <semaphore.h>
+#include <atomic.h>
 
 #include <shlib-compat.h>
 
diff --git a/nptl/sysdeps/unix/sysv/linux/sem_wait.c b/nptl/sysdeps/unix/sysv/linux/sem_wait.c
index 7d586cf..b12babb 100644
--- a/nptl/sysdeps/unix/sysv/linux/sem_wait.c
+++ b/nptl/sysdeps/unix/sysv/linux/sem_wait.c
@@ -25,6 +25,7 @@
 
 #include <pthreadP.h>
 #include <shlib-compat.h>
+#include <atomic.h>
 
 
 void

Attachment: pgpyjc7VxHS_s.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]