This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED] sem_post.c: Include atomic.h.
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sun, 07 Apr 2013 16:12:41 -0400
- Subject: [COMMITTED] sem_post.c: Include atomic.h.
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.