diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-09-12 23:05:30 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-09-12 23:05:30 +0000 |
commit | beb798dbd1b40e4491f9a21b8399d8bb78e06eb6 (patch) | |
tree | 06b0dd694cbfb57ec9751c5f7f5168b799031d47 /gnu/usr.bin | |
parent | 324c003e3977ac26eb88bfdf0f855a4ee8547c9d (diff) |
Allow gen-aout.c to compile on something other than #@#!%linux
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/binutils/bfd/Makefile.in | 2 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/bfd/gen-aout.c | 25 |
2 files changed, 26 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/bfd/Makefile.in b/gnu/usr.bin/binutils/bfd/Makefile.in index bb8e06c90f2..ec52da4b636 100644 --- a/gnu/usr.bin/binutils/bfd/Makefile.in +++ b/gnu/usr.bin/binutils/bfd/Makefile.in @@ -1124,7 +1124,7 @@ host-aout.lo: Makefile aout-params.h: gen-aout ./gen-aout host > aout-params.h gen-aout: $(srcdir)/gen-aout.c Makefile - $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c + $(CC) -o gen-aout $(CSEARCH) $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c $(BFD_H): stmp-bfd-h ; @true diff --git a/gnu/usr.bin/binutils/bfd/gen-aout.c b/gnu/usr.bin/binutils/bfd/gen-aout.c index b5ed91a096b..824d1b0f868 100644 --- a/gnu/usr.bin/binutils/bfd/gen-aout.c +++ b/gnu/usr.bin/binutils/bfd/gen-aout.c @@ -17,9 +17,34 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "config.h" +#include <sys/types.h> #include "/usr/include/a.out.h" #include <stdio.h> +#ifdef HAVE_LOCALE_H +# include <locale.h> +#endif + +#ifdef ENABLE_NLS +# include <libintl.h> +# define _(String) gettext (String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else +/* Stubs that do something close enough. */ +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif + int main (argc, argv) int argc; char** argv; |