summaryrefslogtreecommitdiff
path: root/compat/inet_pton.c
diff options
context:
space:
mode:
authorBen Walton <bwalton@artsci.utoronto.ca>2012-02-05 17:32:21 -0500
committerJunio C Hamano <gitster@pobox.com>2012-02-05 16:32:33 -0800
commitcd4c4e2481dd6fcb7ceb39242fa722993f8c0ab1 (patch)
treef2b406c6e4715331edf8bcb28dca6d56e5676109 /compat/inet_pton.c
parent406da7803217998ff6bf5dc69c55b1613556c2f4 (diff)
downloadgit-cd4c4e2481dd6fcb7ceb39242fa722993f8c0ab1.tar.gz
Drop system includes from inet_pton/inet_ntop compatibility wrappersbw/inet-pton-ntop-compat
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_pton.c')
-rw-r--r--compat/inet_pton.c6
1 files changed, 0 insertions, 6 deletions
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 <errno.h>
-#include <sys/types.h>
-
#include "../git-compat-util.h"
-#include <stdio.h>
-#include <string.h>
-
#ifndef NS_INT16SZ
#define NS_INT16SZ 2
#endif