diff options
Diffstat (limited to 'tools/build/unhex.c')
-rw-r--r-- | tools/build/unhex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/build/unhex.c b/tools/build/unhex.c index 14e51a885c..a75ba8e665 100644 --- a/tools/build/unhex.c +++ b/tools/build/unhex.c @@ -88,10 +88,10 @@ void error(int errn, ...); #define ERR_ABORT (ERR_ERRNO / 4) /* error is fatal; abort */ #define ERR_MASK (ERR_ERRNO | ERR_FATAL | ERR_ABORT) /* all */ -#if (defined(sparc) && (sunos < 500)) -#define stol(p) strtol(p, (char **) NULL, 0) /* Sunos */ +#ifdef HAVE_STRTOUL +#define stol(p) strtoul(p, (char **) NULL, 0) #else -#define stol(p) strtoul(p, (char **) NULL, 0) /* Solaris */ +#define stol(p) strtol(p, (char **) NULL, 0) #endif int unhex(FILE *ifp, char *inm, FILE *ofp, char *onm); |