[Asterisk-cvs] asterisk/include/asterisk lock.h,1.15,1.16
markster at lists.digium.com
markster at lists.digium.com
Wed Apr 21 20:15:53 CDT 2004
- Previous message: [Asterisk-cvs] asterisk/channels chan_h323.c,1.44,1.45 chan_iax.c,1.55,1.56 chan_iax2.c,1.124,1.125 chan_mgcp.c,1.44,1.45 chan_sip.c,1.337,1.338 chan_skinny.c,1.35,1.36
- Next message: [Asterisk-cvs] asterisk pbx.c,1.113,1.114
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv19986/include/asterisk
Modified Files:
lock.h
Log Message:
gethostbyname isn't reentrant, who knew...
Index: lock.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/lock.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- lock.h 19 Apr 2004 21:52:39 -0000 1.15
+++ lock.h 22 Apr 2004 00:20:34 -0000 1.16
@@ -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
@@ -177,5 +178,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
- Previous message: [Asterisk-cvs] asterisk/channels chan_h323.c,1.44,1.45 chan_iax.c,1.55,1.56 chan_iax2.c,1.124,1.125 chan_mgcp.c,1.44,1.45 chan_sip.c,1.337,1.338 chan_skinny.c,1.35,1.36
- Next message: [Asterisk-cvs] asterisk pbx.c,1.113,1.114
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list