summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-07-04 08:34:31 +0000
committerJim Meyering <jim@meyering.net>1999-07-04 08:34:31 +0000
commit589cf443b9eb52a77bdf5f2d39d14ad13349afce (patch)
treed4dadbc2b705f27de5d723f3100ac44387ef1bbb /lib
parent0430c3c938a362e0d0554b209e2c78fc6c2ea940 (diff)
downloadcoreutils-589cf443b9eb52a77bdf5f2d39d14ad13349afce.tar.xz
(__strtol): Remove decl; it doesn't work if __strtol
expands to a macro, which occurs in HP-UX 10.20 with strtoumax. (strtol, strtoul): New decls (for pre-ANSI hosts), to replace the above decl.
Diffstat (limited to 'lib')
-rw-r--r--lib/xstrtol.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/xstrtol.c b/lib/xstrtol.c
index 0b91ed723..760b2a57b 100644
--- a/lib/xstrtol.c
+++ b/lib/xstrtol.c
@@ -78,7 +78,13 @@ extern int errno;
#include "xstrtol.h"
-__strtol_t __strtol ();
+#ifndef strtol
+long int strtol ();
+#endif
+
+#ifndef strtoul
+unsigned long int strtoul ();
+#endif
static int
bkm_scale (__strtol_t *x, int scale_factor)