[Python-checkins] python/dist/src/Modules socketmodule.c,1.260,1.261
loewis@users.sourceforge.net
loewis@users.sourceforge.net
2003年4月30日 22:20:48 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv27238/Modules
Modified Files:
socketmodule.c
Log Message:
Patch #725942: Always rename emulation functions.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.260
retrieving revision 1.261
diff -C2 -d -r1.260 -r1.261
*** socketmodule.c 25 Apr 2003 05:48:32 -0000 1.260
--- socketmodule.c 1 May 2003 05:20:46 -0000 1.261
***************
*** 252,257 ****
older releases don't have */
#undef HAVE_GETADDRINFO
- /* avoid clashes with the C library definition of the symbol. */
- #define getaddrinfo fake_getaddrinfo
#endif
#endif
--- 252,255 ----
***************
*** 259,265 ****
--- 257,268 ----
/* I know this is a bad practice, but it is the easiest... */
#if !defined(HAVE_GETADDRINFO)
+ /* avoid clashes with the C library definition of the symbol. */
+ #define getaddrinfo fake_getaddrinfo
+ #define gai_strerror fake_gai_strerror
+ #define freeaddrinfo fake_freeaddrinfo
#include "getaddrinfo.c"
#endif
#if !defined(HAVE_GETNAMEINFO)
+ #define getnameinfo fake_getnameinfo
#include "getnameinfo.c"
#endif