diff options
author | Ben Walton <bwalton@artsci.utoronto.ca> | 2012-02-06 02:32:21 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-06 04:32:33 +0400 |
commit | cd4c4e2481dd6fcb7ceb39242fa722993f8c0ab1 (patch) | |
tree | f2b406c6e4715331edf8bcb28dca6d56e5676109 /compat/inet_ntop.c | |
parent | 406da7803217998ff6bf5dc69c55b1613556c2f4 (diff) |
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 <bwalton@artsci.utoronto.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/inet_ntop.c')
-rw-r--r-- | compat/inet_ntop.c | 6 |
1 files changed, 0 insertions, 6 deletions
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 <errno.h> -#include <sys/types.h> - #include "../git-compat-util.h" -#include <stdio.h> -#include <string.h> - #ifndef NS_INADDRSZ #define NS_INADDRSZ 4 #endif |