summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-07-23 07:27:16 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-07-23 07:27:16 (GMT)
commitfe36fc91ed08537f4b2ee728bcf4a00dc9ee29dd (patch)
treed215df73ff937276e58e414194c7facd4df520f5 /Modules/socketmodule.c
parent4c81d60fcb15661450a3aab72de26d72e32fd4f0 (diff)
downloadcpython-fe36fc91ed08537f4b2ee728bcf4a00dc9ee29dd.zip
cpython-fe36fc91ed08537f4b2ee728bcf4a00dc9ee29dd.tar.gz
cpython-fe36fc91ed08537f4b2ee728bcf4a00dc9ee29dd.tar.bz2
Before declaring h_errno, do not check for Win32 only. Instead, do check
whether h_errno is a macro.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 7fa8264..1c19c28 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1789,7 +1789,7 @@ gethost_common(struct hostent *h, struct sockaddr *addr, int alen, int af)
if (h == NULL) {
/* Let's get real error message to return */
-#ifndef MS_WIN32
+#ifndef h_errno
extern int h_errno;
#endif
PyH_Err(h_errno);