aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-02-10 19:12:13 +0000
committerDaniel Jacobowitz <drow@false.org>2002-02-10 19:12:13 +0000
commit4e5bae56d47dbb1b1428a536ab61413afc544687 (patch)
treeff361353bf726208324754bfa3047e4d7f3a341a /ld/lexsup.c
parent34b0f91d24c2668c92d68fefe418cb02bfcc97db (diff)
downloadbinutils-4e5bae56d47dbb1b1428a536ab61413afc544687.zip
binutils-4e5bae56d47dbb1b1428a536ab61413afc544687.tar.gz
binutils-4e5bae56d47dbb1b1428a536ab61413afc544687.tar.bz2
2002-02-10 Daniel Jacobowitz <drow@mvista.com>
* ldmain.c: Add prototype for main (). * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H. * emultempl/lnk960.em (lnk960_choose_target): Function should take two arguments.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index ca2e9a1..7208074 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1,6 +1,6 @@
/* Parse options for the GNU linker.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001
+ 2001, 2002
Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -53,9 +53,12 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
+#ifndef HAVE_STDLIB_H
+/* If we have <stdlib.h>, assume it defines strtoul. */
/* Omit args to avoid the possibility of clashing with a system header
that might disagree about consts. */
unsigned long strtoul ();
+#endif
static int is_num PARAMS ((const char *, int, int, int));
static void set_default_dirlist PARAMS ((char *dirlist_ptr));