[Asterisk-cvs] asterisk/include/asterisk lock.h,1.6.2.3,1.6.2.4

markster at lists.digium.com markster at lists.digium.com
Wed Apr 21 20:45:30 CDT 2004


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv20221/include/asterisk

Modified Files:
      Tag: v1-0_stable
	lock.h 
Log Message:
Backport gethostbyname_r conversion


Index: lock.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/lock.h,v
retrieving revision 1.6.2.3
retrieving revision 1.6.2.4
diff -u -d -r1.6.2.3 -r1.6.2.4
--- lock.h	1 Apr 2004 06:35:17 -0000	1.6.2.3
+++ lock.h	22 Apr 2004 00:50:11 -0000	1.6.2.4
@@ -15,6 +15,7 @@
 #define _ASTERISK_LOCK_H
 
 #include <pthread.h>
+#include <netdb.h>
 
 #define AST_PTHREADT_NULL (pthread_t) -1
 #define AST_PTHREADT_STOP (pthread_t) -2
@@ -184,5 +185,12 @@
 
 #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




More information about the svn-commits mailing list