From 1675ca337818b16c5d165fcb37b7d9043ef7696e Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 10 Apr 2009 22:34:17 +0000 Subject: [PATCH] * libmisc/getlong.c: Include both and needed for strtol and errno, and do not include "defines.h" (not needed). --- ChangeLog | 5 +++++ libmisc/getlong.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 99be15cb..5b4ce3c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-06 Nicolas François + + * libmisc/getlong.c: Include both and needed + for strtol and errno, and do not include "defines.h" (not needed). + 2009-04-06 Nicolas François * src/useradd.c, src/usermod.c, libmisc/getgr_nam_gid.c, diff --git a/libmisc/getlong.c b/libmisc/getlong.c index 48914b37..7f4c7d7c 100644 --- a/libmisc/getlong.c +++ b/libmisc/getlong.c @@ -31,8 +31,9 @@ #ident "$Id$" +#include +#include #include "prototypes.h" -#include "defines.h" int getlong (const char *numstr, long int *result) {