[COMMITTED] sem_post.c: Include atomic.h.
Carlos O'Donell
carlos@redhat.com
Sun Apr 7 23:49:00 GMT 2013
While doing some x86/x86-64 work I noticed some compiler
warnings about implicit definitions of atomic functions.
The sem_post.c file uses atomic functions without including
atomic.h.
Committed per consensus about including the headers you need.
2013-04-07 Carlos O'Donell <carlos@redhat.com>
* sysdeps/unix/sysv/linux/sem_post.c: Include atomic.h.
diff --git a/nptl/sysdeps/unix/sysv/linux/sem_post.c b/nptl/sysdeps/unix/sysv/linux/sem_post.c
index 6d3657c..622c7b0 100644
--- a/nptl/sysdeps/unix/sysv/linux/sem_post.c
+++ b/nptl/sysdeps/unix/sysv/linux/sem_post.c
@@ -17,6 +17,7 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#include <atomic.h>
#include <errno.h>
#include <sysdep.h>
#include <lowlevellock.h>
---
Cheers,
Carlos.
More information about the Libc-alpha
mailing list