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
b6c34587
Kaydet (Commit)
b6c34587
authored
Eyl 07, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use the '__linux__' instead 'linux' preprocessor define
üst
56be5f53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
socketmodule.c
Modules/socketmodule.c
+4
-4
No files found.
Modules/socketmodule.c
Dosyayı görüntüle @
b6c34587
...
...
@@ -153,7 +153,7 @@ if_indextoname(index) -- return the corresponding interface name\n\
On the other hand, not all Linux versions agree, so there the settings
computed by the configure script are needed! */
#ifndef
linux
#ifndef
__linux__
# undef HAVE_GETHOSTBYNAME_R_3_ARG
# undef HAVE_GETHOSTBYNAME_R_5_ARG
# undef HAVE_GETHOSTBYNAME_R_6_ARG
...
...
@@ -176,7 +176,7 @@ if_indextoname(index) -- return the corresponding interface name\n\
# define HAVE_GETHOSTBYNAME_R_3_ARG
# elif defined(__sun) || defined(__sgi)
# define HAVE_GETHOSTBYNAME_R_5_ARG
# elif defined(
linux
)
# elif defined(
__linux__
)
/* Rely on the configure script */
# else
# undef HAVE_GETHOSTBYNAME_R
...
...
@@ -1214,7 +1214,7 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto)
case
AF_UNIX
:
{
struct
sockaddr_un
*
a
=
(
struct
sockaddr_un
*
)
addr
;
#ifdef
linux
#ifdef
__linux__
if
(
a
->
sun_path
[
0
]
==
0
)
{
/* Linux abstract namespace */
addrlen
-=
offsetof
(
struct
sockaddr_un
,
sun_path
);
return
PyBytes_FromStringAndSize
(
a
->
sun_path
,
addrlen
);
...
...
@@ -1529,7 +1529,7 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args,
assert
(
path
.
len
>=
0
);
addr
=
(
struct
sockaddr_un
*
)
addr_ret
;
#ifdef
linux
#ifdef
__linux__
if
(
path
.
len
>
0
&&
*
(
const
char
*
)
path
.
buf
==
0
)
{
/* Linux abstract namespace extension */
if
((
size_t
)
path
.
len
>
sizeof
addr
->
sun_path
)
{
...
...
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