This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] Work around build failure for hppa64-linux-gnu cross compiler


Seen while building a hppa-linux -> hppa64-linux cross compiler; there
is no 64bit user space, the compiler is only used to build the hppa64
kernel. Patch pre-approved by Dave.

  Matthias

2008-10-13  Matthias Klose  <doko@ubuntu.com>

	* gcc/config/pa/linux-atomic.c: Work around missing header file
	for hppa64-linux-gnu targets.


--- gcc/config/pa/linux-atomic.c~       2008-09-08 01:18:25.000000000 +0200
+++ gcc/config/pa/linux-atomic.c        2008-10-12 19:39:31.000000000 +0200
@@ -29,7 +29,13 @@
 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301, USA.  */
 
+/* FIXME: work around build failure for hppa64-linux-gnu target. */
+#ifndef _LP64
 #include <errno.h>
+#else
+#define ENOSYS 251
+#define EFAULT 14
+#endif
 
 /* All PA-RISC implementations supported by linux have strongly
    ordered loads and stores.  Only cache flushes and purges can be


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