/* s/ file for openbsd systems. */
-/* Get most of the stuff from bsd4.3 */
-#include "bsd4-3.h"
-
-/* Get the rest of the stuff from that less-POSIX-conformant system */
+/* Mostly the same as NetBSD. */
#include "netbsd.h"
/* David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
is necessary. Otherwise Emacs dumps core when run -nw. */
#undef LIBS_TERMCAP
+
+#define TERMINFO
+#define LIBS_TERMCAP -lncurses
+
+#undef LD_SWITCH_SYSTEM
+#ifdef __ELF__
+
+/* Han Boetes <han@mijncomputer.nl> says this
+ is necessary, otherwise Emacs dumps core on elf systems. */
+#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Z
+
+#else
+
+#define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp
+
+#endif