diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2017-12-20 00:40:58 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2017-12-20 00:40:58 +0100 |
commit | dbfa491594e0c84079bebc991107e1b51a228433 (patch) | |
tree | 45c42b4abb81067f139b2acdffed18c8612577f8 /src/utils.h | |
parent | 8c051422c1673e57ce70cc9dccb6e136d901cc09 (diff) |
ptunnel-ng:
* fixed mingw64 cross compile issues
* using getaddrinfo instead of obsolete gethostbyname
* removed IS_WINDOWS AM_CONDITIONAL
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index 7a2b551..e0355d1 100644 --- a/src/utils.h +++ b/src/utils.h @@ -1,12 +1,16 @@ #ifndef UTILS_H #define UTILS_H 1 +#include <stdint.h> + #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) void pt_log(int level, const char *fmt, ...); double time_as_double(void); +int host_to_addr(const char *hostname, uint32_t *result); + #if 0 void print_hexstr(unsigned char *buf, size_t siz); #endif |