]> git.eshelyaron.com Git - emacs.git/commitdiff
Add support for NetBSD.
authorEli Zaretskii <eliz@gnu.org>
Fri, 22 Dec 2006 23:05:55 +0000 (23:05 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 22 Dec 2006 23:05:55 +0000 (23:05 +0000)
src/m/amdx86-64.h
src/m/hp800.h

index 670360336a8fdeebb4f6ef3c72ac14a9b13a664a..36e62ef61667a330435226b4613dff86109c8f56 100644 (file)
@@ -125,12 +125,16 @@ Boston, MA 02110-1301, USA.  */
 #undef LIB_STANDARD
 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o
 
+#elif defined(__NetBSD__)
+
+/* LIB_STANDARD and START_FILES set correctly in s/netbsd.h */
+
 #elif defined(sun)
 
 #undef START_FILES
 #undef LIB_STANDARD
 
-#else /* !__OpenBSD__ && !__FreeBSD__ && !sun */
+#else /* !__OpenBSD__ && !__FreeBSD__ && !__NetBSD__ && !sun */
 
 #undef START_FILES
 #ifdef HAVE_X86_64_LIB64_DIR
index 01146e52359132b07084ad49c31d2962ff42195f..1630a0bc883478b7639563f4feeaacad8e91b34c 100644 (file)
@@ -174,6 +174,14 @@ Boston, MA 02110-1301, USA.  */
 #define rindex strrchr
 
 #endif /* __hpux */
+\f
+/* 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) */