From f2d86d9a83eb4918d8983fffd32162d391ccfe1f Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Wed, 20 Jul 2011 09:10:22 +0200 Subject: [PATCH] dhcpd-pools.h: move string.h to include Version 2.16 needs the patche to compile correctly and without warnings (tested on NetBSD, Mac OS X and Debian/Ubuntu). Signed-off-by: Adam Ciarcinski Signed-off-by: Sami Kerola --- THANKS | 1 + src/dhcpd-pools.h | 6 ++++++ src/getdata.c | 7 ------- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/THANKS b/THANKS index 46d1efc..41f32f2 100644 --- a/THANKS +++ b/THANKS @@ -18,3 +18,4 @@ Dominic Germain Anders Låstad Thor Eivind Brantzeg Ahmed AL Dakhil +Adam Ciarcinski diff --git a/src/dhcpd-pools.h b/src/dhcpd-pools.h index 4d785fe..26b6ce3 100644 --- a/src/dhcpd-pools.h +++ b/src/dhcpd-pools.h @@ -52,6 +52,12 @@ extern char *malloc(); #define EXIT_SUCCESS 0 #endif /* STDC_HEADERS */ +#ifdef HAVE_STRING_H +#include +#else +#include +#endif + #ifndef HAVE_PROGRAM_INVOCATION_SHORT_NAME # ifdef HAVE___PROGNAME extern char *__progname; diff --git a/src/getdata.c b/src/getdata.c index 8a0786d..01bf3e9 100644 --- a/src/getdata.c +++ b/src/getdata.c @@ -43,19 +43,12 @@ extern char *malloc(); #define EXIT_SUCCESS 0 /* Successful exit status. */ #endif /* STDC_HEADERS */ -#ifdef HAVE_STRING_H -#include -#else -#include -#endif - #include #include #include #include #include #include -#include #include #include #include