summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/Makefile.inc
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-08 05:41:57 +0000
committerjb <jb@FreeBSD.org>1998-05-08 05:41:57 +0000
commit1baebded07d93a8b57872369b293ffad83860c95 (patch)
tree98d7623b520560d0d442a0fcee3c38fefa55ba8a /lib/libc/stdlib/Makefile.inc
parent444dd67e6d708ad991b19dc04e534d76a841c5bc (diff)
downloadFreeBSD-src-1baebded07d93a8b57872369b293ffad83860c95.zip
FreeBSD-src-1baebded07d93a8b57872369b293ffad83860c95.tar.gz
This is a hack to workaround source that is coded to use long variables
but also assumes that they are 32-bits. This is one place where I don't think it is appropriate to change 'long' to 'int'. I don't see why the code couldn't be fixed so that using natural long variables does the right thing. It's spaggetti code so it'll take some effort. Obviously NetBSD thought so too because they change 'long' to 'int32_t' etc and left it at that. As a temporary measure FreeBSD/Alpha can use the NetBSD code and put this on the list of things to fix.
Diffstat (limited to 'lib/libc/stdlib/Makefile.inc')
-rw-r--r--lib/libc/stdlib/Makefile.inc13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc
index 6ad404e..0d7ae27 100644
--- a/lib/libc/stdlib/Makefile.inc
+++ b/lib/libc/stdlib/Makefile.inc
@@ -1,5 +1,5 @@
# from @(#)Makefile.inc 8.3 (Berkeley) 2/4/95
-# $Id: Makefile.inc,v 1.13 1997/10/21 08:41:13 bde Exp $
+# $Id: Makefile.inc,v 1.14 1998/02/20 08:41:46 jb Exp $
# machine-independent stdlib sources
.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib ${.CURDIR}/../libc/stdlib
@@ -7,9 +7,18 @@
MISRCS+=abort.c abs.c atexit.c atof.c atoi.c atol.c bsearch.c calloc.c div.c \
exit.c getenv.c getopt.c getsubopt.c heapsort.c labs.c ldiv.c \
malloc.c merge.c putenv.c qsort.c radixsort.c rand.c random.c \
- realpath.c setenv.c strhash.c strtod.c strtol.c strtoq.c strtoul.c \
+ realpath.c setenv.c strhash.c strtol.c strtoq.c strtoul.c \
strtouq.c system.c
+.if ${MACHINE_ARCH} == "alpha"
+# XXX Temporary until the assumption that a long is 32-bits is resolved
+# XXX FreeBSD's code. NetBSD kludged this with Long = int32_t and
+# XXX ULong = u_int32_t
+SRCS+= netbsd_strtod.c
+.else
+SRCS+= strtod.c
+.endif
+
# machine-dependent stdlib sources
.include "${.CURDIR}/../libc/${MACHINE_ARCH}/stdlib/Makefile.inc"
OpenPOWER on IntegriCloud