diff src/m/hp800.h @ 74825:bdb161691a87

Add support for NetBSD.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 22 Dec 2006 23:05:55 +0000
parents 3bd95f4f2941
children e90d04cd455a bc10a33dd40b
line wrap: on
line diff
--- a/src/m/hp800.h	Fri Dec 22 22:58:05 2006 +0000
+++ b/src/m/hp800.h	Fri Dec 22 23:05:55 2006 +0000
@@ -174,6 +174,14 @@
 #define rindex strrchr
 
 #endif /* __hpux */
+
+/* Systems with GCC don't need to lose. */
+#ifdef __NetBSD__
+# ifdef __GNUC__
+#  define alloca __builtin_alloca
+#  define HAVE_ALLOCA
+# endif /* __GNUC__ */
+#endif /* __NetBSD__ */
 
 /* arch-tag: 809436e6-1645-4b92-b40d-2de5d6e7227c
    (do not change this comment) */