diff options
Diffstat (limited to 'include/asterisk')
-rwxr-xr-x | include/asterisk/lock.h | 6 | ||||
-rwxr-xr-x | include/asterisk/utils.h | 9 |
2 files changed, 9 insertions, 6 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 035237914..72743c04f 100755 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -179,11 +179,5 @@ static inline int ast_mutex_init(ast_mutex_t *t) #endif /* DEBUG_THREADS */ #define gethostbyname __gethostbyname__is__not__reentrant__use__ast_gethostbyname__instead__ -struct ast_hostent { - struct hostent hp; - char buf[1024]; -}; - -extern struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp); #endif 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 |