This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Include <string.h> in sysdeps/unix/sysv/linux/libc_fatal.c.
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Sat, 22 Jun 2013 19:31:20 +0000
- Subject: Include <string.h> in sysdeps/unix/sysv/linux/libc_fatal.c.
sysdeps/unix/sysv/linux/libc_fatal.c uses strlen but doesn't include
<string.h>, resulting in implicit declaration warnings when building for
MIPS. I've committed as obvious this patch to add an include of
<string.h>.
diff --git a/ChangeLog b/ChangeLog
index ca04a70..ac92ef1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2013-06-22 Joseph Myers <joseph@codesourcery.com>
+ * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
+
[BZ #15667]
* soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
diff --git a/sysdeps/unix/sysv/linux/libc_fatal.c b/sysdeps/unix/sysv/linux/libc_fatal.c
index 84429cd..4e5663d 100644
--- a/sysdeps/unix/sysv/linux/libc_fatal.c
+++ b/sysdeps/unix/sysv/linux/libc_fatal.c
@@ -20,6 +20,7 @@
#include <execinfo.h>
#include <fcntl.h>
#include <not-cancel.h>
+#include <string.h>
#include <sys/mman.h>
#include <sys/uio.h>
--
Joseph S. Myers
joseph@codesourcery.com