diff options
Diffstat (limited to 'include/asterisk/utils.h')
-rwxr-xr-x | include/asterisk/utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index 18863e880..686f4cb1e 100755 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -12,9 +12,18 @@ #ifndef _ASTERISK_UTIL_H #define _ASTERISK_UTIL_H +#include <netdb.h> + static inline int ast_strlen_zero(const char *s) { return (*s == '\0'); } +struct ast_hostent { + struct hostent hp; + char buf[1024]; +}; + +extern struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp); + #endif |