This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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] Fix NPTL build on IA-64


Hi!

After recent changes to smp.h NPTL on IA-64 no longer compiles
- __set_errno is not defined.
Here is a quick fix, though not sure if it wouldn't be better to just
#include <errno.h> in all sysdep.h headers that define INLINE_SYSCALL
macro (as there __set_errno is used).

2004-11-02  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/smp.h: Include errno.h.

--- libc/nptl/sysdeps/unix/sysv/linux/smp.h	24 Oct 2004 22:04:05 -0000	1.2
+++ libc/nptl/sysdeps/unix/sysv/linux/smp.h	2 Nov 2004 17:07:42 -0000	1.1.2.2
@@ -17,6 +17,7 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <errno.h>
 #include <fcntl.h>
 #include <string.h>
 #include <sys/sysctl.h>

	Jakub


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