From: Ben Walton Date: Sun, 5 Feb 2012 22:32:21 +0000 (-0500) Subject: Drop system includes from inet_pton/inet_ntop compatibility wrappers X-Git-Tag: v1.7.9.1~2^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/cd4c4e2481dd6fcb7ceb39242fa722993f8c0ab1?hp=--cc Drop system includes from inet_pton/inet_ntop compatibility wrappers As both of these compatibility wrappers include git-compat-utils.h, all of the system includes were redundant. Dropping these system includes also makes git-compat-utils.h the first include which avoids a compiler warning on Solaris due to the redefinition of _FILE_OFFSET_BITS. Signed-off-by: Ben Walton Signed-off-by: Junio C Hamano --- cd4c4e2481dd6fcb7ceb39242fa722993f8c0ab1 diff --git a/compat/inet_ntop.c b/compat/inet_ntop.c index 60b5a1d0f8..90b7cc45f3 100644 --- a/compat/inet_ntop.c +++ b/compat/inet_ntop.c @@ -15,14 +15,8 @@ * SOFTWARE. */ -#include -#include - #include "../git-compat-util.h" -#include -#include - #ifndef NS_INADDRSZ #define NS_INADDRSZ 4 #endif diff --git a/compat/inet_pton.c b/compat/inet_pton.c index 2ec995e63d..2b9a0a4e22 100644 --- a/compat/inet_pton.c +++ b/compat/inet_pton.c @@ -15,14 +15,8 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include - #include "../git-compat-util.h" -#include -#include - #ifndef NS_INT16SZ #define NS_INT16SZ 2 #endif