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]

PATCH: Include <errno.h> in stdio-common/psiginfo.c


ia64 build failed with

/export/build/gnu/glibc/build-ia64-linux/libc_pic.os: In function
`psiginfo':
/net/gnu-6/export/gnu/src/glibc/glibc/stdio-common/psiginfo.c:182:
undefined reference to `__set_errno'
collect2: ld returned 1 exit status
make[3]: *** [/export/build/gnu/glibc/build-ia64-linux/libc.so] Error 1
make[3]: Leaving directory `/net/gnu-6/export/gnu/src/glibc/glibc'

stdio-common/psiginfo.c has

write_not_cancel (STDERR_FILENO, buf, strlen (buf));

which may use __set_errno. But <errno.h> may not be included. This
patch fixes it.


H.J.
---
2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>

	* stdio-common/psiginfo.c: Include <errno.h>.

Index: stdio-common/psiginfo.c
===================================================================
--- stdio-common/psiginfo.c	(revision 5746)
+++ stdio-common/psiginfo.c	(working copy)
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <errno.h>
 #include <not-cancel.h>
 
 


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