summaryrefslogtreecommitdiff
path: root/openbsd-compat/strtonum.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-08-05 16:27:20 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-08-05 16:27:20 +1000
commit8a15f01affbe332970fd8f8b07d3e6d8f7e6acb2 (patch)
tree320ab7cac5fdef3fc47d3a0704caa359c2298df1 /openbsd-compat/strtonum.c
parentd8aec107fec09a5e943d5ad96d364823b48249d8 (diff)
- (dtucker) [openbsd-compat/strtonum.c] Include stdlib.h for strtoll,
otherwise it is implicitly declared as returning an int.
Diffstat (limited to 'openbsd-compat/strtonum.c')
-rw-r--r--openbsd-compat/strtonum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/strtonum.c b/openbsd-compat/strtonum.c
index 35c5c18b9..87f2f24b2 100644
--- a/openbsd-compat/strtonum.c
+++ b/openbsd-compat/strtonum.c
@@ -20,7 +20,9 @@
20/* OPENBSD ORIGINAL: lib/libc/stdlib/strtonum.c */ 20/* OPENBSD ORIGINAL: lib/libc/stdlib/strtonum.c */
21 21
22#include "includes.h" 22#include "includes.h"
23
23#ifndef HAVE_STRTONUM 24#ifndef HAVE_STRTONUM
25#include <stdlib.h>
24#include <limits.h> 26#include <limits.h>
25#include <errno.h> 27#include <errno.h>
26 28