diff options
| author | Roy Marples <roy@marples.name> | 2019-11-28 12:34:29 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-11-28 12:34:29 +0000 |
| commit | f90486b1657f0331ae5e7d817b9ba3de90856d52 (patch) | |
| tree | 053cc76fac7ca1693674ab3cd4d223df91e30e29 /compat | |
| parent | 2085cc8980607df4db0c73c51f3879fd89c0d81c (diff) | |
| download | dhcpcd-f90486b1657f0331ae5e7d817b9ba3de90856d52.tar.xz | |
Sync strtoi and strtou with latest upstream to allow -Wundef
not to error.
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/strtoi.c | 4 | ||||
| -rw-r--r-- | compat/strtou.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compat/strtoi.c b/compat/strtoi.c index e472a1c1..567d86ed 100644 --- a/compat/strtoi.c +++ b/compat/strtoi.c @@ -1,4 +1,4 @@ -/* $NetBSD: strtoi.c,v 1.2 2015/05/01 14:17:56 christos Exp $ */ +/* $NetBSD: strtoi.c,v 1.3 2019/11/28 12:33:23 roy Exp $ */ /*- * Copyright (c) 2005 The DragonFly Project. All rights reserved. @@ -30,7 +30,7 @@ * NetBSD: src/common/lib/libc/stdlib/strtoul.c,v 1.3 2008/08/20 19:58:34 oster Exp */ -#if HAVE_NBTOOL_CONFIG_H +#if defined(HAVE_NBTOOL_CONFIG_H) && HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif diff --git a/compat/strtou.c b/compat/strtou.c index ea1adf4b..f300dcc2 100644 --- a/compat/strtou.c +++ b/compat/strtou.c @@ -1,4 +1,4 @@ -/* $NetBSD: strtou.c,v 1.2 2015/05/01 14:17:56 christos Exp $ */ +/* $NetBSD: strtou.c,v 1.3 2019/11/28 12:33:23 roy Exp $ */ /*- * Copyright (c) 2005 The DragonFly Project. All rights reserved. @@ -30,7 +30,7 @@ * NetBSD: src/common/lib/libc/stdlib/strtoul.c,v 1.3 2008/08/20 19:58:34 oster Exp */ -#if HAVE_NBTOOL_CONFIG_H +#if defined(HAVE_NBTOOL_CONFIG_H) && HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif |
