diff options
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r-- | gnu/usr.bin/binutils/gdb/.gdbinit | 1 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/readline/configure.in | 1 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/readline/sysdep-openbsd.h | 22 |
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 */ |