diff options
Diffstat (limited to 'db2/clib')
-rw-r--r-- | db2/clib/getlong.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db2/clib/getlong.c b/db2/clib/getlong.c index d79c6846df..0cc8567081 100644 --- a/db2/clib/getlong.c +++ b/db2/clib/getlong.c @@ -18,6 +18,7 @@ static const char sccsid[] = "@(#)getlong.c 10.2 (Sleepycat) 5/1/97"; #endif #include "db.h" +#include "db_int.h" #include "clib_ext.h" /* @@ -34,7 +35,7 @@ get_long(p, min, max, storep) long val; char *end; - errno = 0; + __set_errno(0); val = strtol(p, &end, 10); if ((val == LONG_MIN || val == LONG_MAX) && errno == ERANGE) err(1, "%s", p); |