summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>1998-05-17 19:43:26 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>1998-05-17 19:43:26 +0000
commit0e49cd0971bbbb5944c5148d5b8d9d97fd47d194 (patch)
tree6339f613732dab2a3a007082d9cbb3e197fb8984 /gnu
parentb7295e5e499ec33f82d2c3f0a1d1c22432aacc07 (diff)
add openbsd configuration file to readline. The config file pulls in
unistd.h (for sys/unistd.h) to get _POSIX_VERSION so readline does not depend upon the 4.3 compatibility ioctls.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/gdb/.gdbinit1
-rw-r--r--gnu/usr.bin/binutils/readline/configure.in1
-rw-r--r--gnu/usr.bin/binutils/readline/sysdep-openbsd.h22
3 files changed, 24 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/gdb/.gdbinit b/gnu/usr.bin/binutils/gdb/.gdbinit
index f60802e5009..a9b6bd013c7 100644
--- a/gnu/usr.bin/binutils/gdb/.gdbinit
+++ b/gnu/usr.bin/binutils/gdb/.gdbinit
@@ -13,4 +13,5 @@ end
dir ../mmalloc
dir ../libiberty
dir ../bfd
+dir ../readline
set prompt (top-gdb)
diff --git a/gnu/usr.bin/binutils/readline/configure.in b/gnu/usr.bin/binutils/readline/configure.in
index ca2860287d8..560f3535e76 100644
--- a/gnu/usr.bin/binutils/readline/configure.in
+++ b/gnu/usr.bin/binutils/readline/configure.in
@@ -50,6 +50,7 @@ case "${host}" in
*-*-sunos4.1*) host_makefile_frag=config/mh-posix ;;
*-*-ultrix2*) files=sysdep-obsd.h ;;
*-*-riscos*) host_makefile_frag=config/mh-sysv ;;
+ *-*-openbsd*) files=sysdep-openbsd.h ;;
esac
# per-target:
diff --git a/gnu/usr.bin/binutils/readline/sysdep-openbsd.h b/gnu/usr.bin/binutils/readline/sysdep-openbsd.h
new file mode 100644
index 00000000000..074a06fcca7
--- /dev/null
+++ b/gnu/usr.bin/binutils/readline/sysdep-openbsd.h
@@ -0,0 +1,22 @@
+/* $OpenBSD: sysdep-openbsd.h,v 1.1 1998/05/17 19:43:25 marc Exp $
+
+/* System defines for OpenBSD.
+ If you think you need to change this file, then you are wrong. In order to
+ avoid a huge ugly mass of nested #ifdefs, you should create a new file just
+ for your system, which contains exactly those #includes and definitions that
+ your system needs, AND NOTHING MORE! Then, add that file to the appropriate
+ place in configure.in, and viola, you are done. sysdep-sunos4.h is a good
+ example of how to do this. */
+
+#ifdef __GNUC__
+#define alloca __builtin_alloca
+#else
+#ifndef alloca /* May be a macro, with args. */
+extern char *alloca ();
+#endif
+#endif
+
+#include <sys/types.h> /* Needed by dirent.h */
+#include <dirent.h>
+typedef struct dirent dirent;
+#include <unistd.h> /* for _POSIX_VERSION */