OSDN Git Service

2008-10-13 Matthias Klose <doko@ubuntu.com>
authordoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Oct 2008 21:01:13 +0000 (21:01 +0000)
committerdoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Oct 2008 21:01:13 +0000 (21:01 +0000)
* gcc/config/pa/linux-atomic.c: Work around missing header file
for hppa64-linux-gnu targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141095 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/pa/linux-atomic.c

index bbf7cd5..ef4ce0b 100644 (file)
@@ -1,3 +1,8 @@
+2008-10-13  Matthias Klose  <doko@ubuntu.com>
+
+       * gcc/config/pa/linux-atomic.c: Work around missing header file
+       for hppa64-linux-gnu targets.
+
 2008-10-13  Andrew Pinski  <andrew_pinski@playstation.sony.com>
             Kaushal Kantawala <Kaushal_Kantawala@playstation.sony.com>
             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
 2008-10-13  Andrew Pinski  <andrew_pinski@playstation.sony.com>
             Kaushal Kantawala <Kaushal_Kantawala@playstation.sony.com>
             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
index 23f5f73..4f9780f 100644 (file)
@@ -29,7 +29,13 @@ along with GCC; see the file COPYING.  If not, write to the Free
 Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
 02110-1301, USA.  */
 
 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>
 #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
 
 /* All PA-RISC implementations supported by linux have strongly
    ordered loads and stores.  Only cache flushes and purges can be