diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-04-25 06:48:40 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-04-25 06:48:40 +0000 |
commit | 98a8d7f0fe92b5b0ce238649f24a3f6607eeffcd (patch) | |
tree | cf9dfecfcbe613301414beba217a67a53dfd5507 /gnu/usr.bin/gas | |
parent | d7d1546f74aaed467d3e71b5588f026f843ae9fd (diff) |
Improved cross-compilability (from non-a.out host)
Diffstat (limited to 'gnu/usr.bin/gas')
-rw-r--r-- | gnu/usr.bin/gas/Makefile | 4 | ||||
-rw-r--r-- | gnu/usr.bin/gas/as.h | 3 | ||||
-rw-r--r-- | gnu/usr.bin/gas/config/aout.h | 4 | ||||
-rw-r--r-- | gnu/usr.bin/gas/hash.c | 6 |
4 files changed, 8 insertions, 9 deletions
diff --git a/gnu/usr.bin/gas/Makefile b/gnu/usr.bin/gas/Makefile index 53365076fd2..6ea5e63ff51 100644 --- a/gnu/usr.bin/gas/Makefile +++ b/gnu/usr.bin/gas/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 1998/02/15 18:48:39 niklas Exp $ +# $OpenBSD: Makefile,v 1.4 1998/04/25 06:48:34 niklas Exp $ # $NetBSD: Makefile,v 1.25 1997/10/25 10:10:35 lukem Exp $ # @(#)Makefile 6.1 (Berkeley) 3/3/91 TARGET_MACHINE_ARCH?= $(MACHINE_ARCH) @@ -61,7 +61,7 @@ config_hostfile= $(.CURDIR)/config/ho-$(gas_hosttype).h config_hostfile= $(.CURDIR)/config/ho-generic.h .endif -host.h: Makefile config/Makefile.$(MACHINE_ARCH) +host.h: $(config_hostfile) @cmp -s $(config_hostfile) host.h || \ ( echo "updating ${.TARGET}..." ; /bin/rm -f host.h ; \ cp $(config_hostfile) host.h ) diff --git a/gnu/usr.bin/gas/as.h b/gnu/usr.bin/gas/as.h index 18e97fe99a3..c5b0a098faf 100644 --- a/gnu/usr.bin/gas/as.h +++ b/gnu/usr.bin/gas/as.h @@ -1,4 +1,4 @@ -/* $OpenBSD: as.h,v 1.3 1998/02/28 00:51:54 niklas Exp $ */ +/* $OpenBSD: as.h,v 1.4 1998/04/25 06:48:35 niklas Exp $ */ /* as.h - global header file Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc. @@ -74,6 +74,7 @@ /* These #includes are for type definitions etc. */ #include <stdio.h> +#include <stdlib.h> #include <assert.h> #include <string.h> diff --git a/gnu/usr.bin/gas/config/aout.h b/gnu/usr.bin/gas/config/aout.h index 9821d9b52e3..47ef822f59d 100644 --- a/gnu/usr.bin/gas/config/aout.h +++ b/gnu/usr.bin/gas/config/aout.h @@ -1,4 +1,4 @@ -/* $OpenBSD: aout.h,v 1.2 1998/02/15 18:49:09 niklas Exp $ */ +/* $OpenBSD: aout.h,v 1.3 1998/04/25 06:48:39 niklas Exp $ */ /* This file is aout.h @@ -113,7 +113,7 @@ struct exec_bytes { struct exec { - unsigned long a_info; /* Use macros N_MAGIC, etc for access */ + u_int32_t a_info; /* Use macros N_MAGIC, etc for access */ unsigned a_text; /* length of text, in bytes */ unsigned a_data; /* length of data, in bytes */ unsigned a_bss; /* length of uninitialized data area for file, in bytes */ diff --git a/gnu/usr.bin/gas/hash.c b/gnu/usr.bin/gas/hash.c index c0014f3b273..8dbc7096778 100644 --- a/gnu/usr.bin/gas/hash.c +++ b/gnu/usr.bin/gas/hash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hash.c,v 1.2 1998/02/15 18:48:49 niklas Exp $ */ +/* $OpenBSD: hash.c,v 1.3 1998/04/25 06:48:37 niklas Exp $ */ /* hash.c - hash table lookup strings - Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc. @@ -125,11 +125,9 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: hash.c,v 1.2 1998/02/15 18:48:49 niklas Exp $"; +static char rcsid[] = "$OpenBSD: hash.c,v 1.3 1998/04/25 06:48:37 niklas Exp $"; #endif -#include <stdio.h> - #ifndef FALSE #define FALSE (0) #define TRUE (!FALSE) |