Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
272cb40e
Kaydet (Commit)
272cb40e
authored
Mar 01, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #520062: Support IPv6 with VC.NET.
üst
31e233aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
socketmodule.c
Modules/socketmodule.c
+3
-0
socketmodule.h
Modules/socketmodule.h
+10
-0
pyconfig.h
PC/pyconfig.h
+4
-0
No files found.
Modules/socketmodule.c
Dosyayı görüntüle @
272cb40e
...
@@ -409,8 +409,11 @@ PyGAI_Err(int error)
...
@@ -409,8 +409,11 @@ PyGAI_Err(int error)
{
{
PyObject
*
v
;
PyObject
*
v
;
#ifdef EAI_SYSTEM
/* EAI_SYSTEM is not available on Windows XP. */
if
(
error
==
EAI_SYSTEM
)
if
(
error
==
EAI_SYSTEM
)
return
PySocket_Err
();
return
PySocket_Err
();
#endif
#ifdef HAVE_GAI_STRERROR
#ifdef HAVE_GAI_STRERROR
v
=
Py_BuildValue
(
"(is)"
,
error
,
gai_strerror
(
error
));
v
=
Py_BuildValue
(
"(is)"
,
error
,
gai_strerror
(
error
));
...
...
Modules/socketmodule.h
Dosyayı görüntüle @
272cb40e
...
@@ -9,8 +9,18 @@
...
@@ -9,8 +9,18 @@
# endif
# endif
#else
/* MS_WINDOWS */
#else
/* MS_WINDOWS */
#if _MSC_VER >= 1300
# include <winsock2.h>
# include <ws2tcpip.h>
# define HAVE_ADDRINFO
# define HAVE_SOCKADDR_STORAGE
# define HAVE_GETADDRINFO
# define HAVE_GETNAMEINFO
# define ENABLE_IPV6
#else
# include <winsock.h>
# include <winsock.h>
#endif
#endif
#endif
#ifdef HAVE_SYS_UN_H
#ifdef HAVE_SYS_UN_H
# include <sys/un.h>
# include <sys/un.h>
...
...
PC/pyconfig.h
Dosyayı görüntüle @
272cb40e
...
@@ -408,7 +408,11 @@ typedef int pid_t;
...
@@ -408,7 +408,11 @@ typedef int pid_t;
/* #undef size_t */
/* #undef size_t */
/* Define to `int' if <sys/types.h> doesn't define. */
/* Define to `int' if <sys/types.h> doesn't define. */
#if _MSC_VER + 0 >= 1300
/* VC.NET typedefs socklen_t in ws2tcpip.h. */
#else
#define socklen_t int
#define socklen_t int
#endif
/* Define if you have the ANSI C header files. */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
#define STDC_HEADERS 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment