mach/spin-solid.c fails to compile

Samuel Thibault samuel.thibault@ens-lyon.org
Sat Jul 21 21:14:00 GMT 2007


(http://sourceware.org/bugzilla/show_bug.cgi?id=4610)

In file included from ../mach/lock-intern.h:22,
                 from ../mach/spin-lock.h:23,
                 from spin-solid.c:19:
../sysdeps/mach/i386/machine-lock.h:38: error: syntax error before 'void'

This is because before machine-lock.h is included, <sys/cdefs.h> never
gets included for defining __extern_inline...  Here is a patch for
including it from lock-intern.h, where it is used.

Samuel
-------------- next part --------------
2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	* mach/lock-intern.h: Include <sys/cdefs.h>

diff -ur glibc-2.6-orig/mach/lock-intern.h glibc-2.6/build-tree/glibc-2.6/mach/lock-intern.h
--- glibc-2.6-orig/mach/lock-intern.h   2007-06-10 21:38:14.000000000 +0000
+++ glibc-2.6/mach/lock-intern.h        2007-06-10 21:40:47.000000000 +0000
@@ -19,6 +19,7 @@
 #ifndef _LOCK_INTERN_H
 #define        _LOCK_INTERN_H
 
+#include <sys/cdefs.h>
 #include <machine-lock.h>
 
 #ifndef _EXTERN_INLINE


More information about the Libc-alpha mailing list