diff options
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 2af8d3edbe..d0a1e480b6 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -104,9 +104,10 @@ #include <assert.h> #include <regex.h> #include <utime.h> +#include <syslog.h> +#include <sys/poll.h> #ifndef __MINGW32__ #include <sys/wait.h> -#include <sys/poll.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <termios.h> @@ -386,6 +387,14 @@ static inline void *gitmempcpy(void *dest, const void *src, size_t n) } #endif +#ifdef NO_INET_PTON +int inet_pton(int af, const char *src, void *dst); +#endif + +#ifdef NO_INET_NTOP +const char *inet_ntop(int af, const void *src, char *dst, size_t size); +#endif + extern void release_pack_memory(size_t, int); typedef void (*try_to_free_t)(size_t); |