aboutsummaryrefslogtreecommitdiffstats
path: root/compat_strtonum.c
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2022-05-25 18:20:38 -0400
committerCameron Katri <me@cameronkatri.com>2022-05-25 18:20:38 -0400
commit3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d (patch)
tree34b4c2f32dca91660db151412cd94ce5a4d58ece /compat_strtonum.c
parenta902c812e98dd53cf9f16b5175f7c1f87e780b53 (diff)
downloadtrustcache-3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d.tar.gz
trustcache-3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d.tar.zst
trustcache-3dbb2ce2ea8b12867db0e24d4bd6c7c6501f5d5d.zip
Fix some portability issues
Diffstat (limited to 'compat_strtonum.c')
-rw-r--r--compat_strtonum.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/compat_strtonum.c b/compat_strtonum.c
index aa433d8..356153d 100644
--- a/compat_strtonum.c
+++ b/compat_strtonum.c
@@ -17,13 +17,12 @@
* $OpenBSD: strtonum.c,v 1.7 2013/04/17 18:40:58 tedu Exp $
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
+#include "compat.h"
+
#define INVALID 1
#define TOOSMALL 2
#define TOOLARGE 3