summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-09 18:13:07 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-09 18:13:07 +0100
commit327fb51cec5393bd84b560ad7df5b85298f96e3c (patch)
tree722aeac2e1db27a4b5e032988b2000a724751d20 /include/git2/common.h
parentb9bfc7684b94bf052203034cbddfdf01e26205e5 (diff)
downloadlibgit2-327fb51cec5393bd84b560ad7df5b85298f96e3c.tar.gz
Fix gethostbyname compatibility
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index 045ba85c4..99018d4f5 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -56,11 +56,7 @@
#endif
#ifdef __amigaos4__
-/* Network byte order is big-endian... so is PPC, so these functions are NOP */
-#define htonl(x) x
-#define ntohl(x) x
-#define htons(x) x
-#define ntohs(x) x
+#include <netinet/in.h>
#endif
/**