mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Fix issue 4884, preventing a crash in the socket code when python is compiled
with llvm-gcc and run with a glibc <2.10.
This commit is contained in:
parent
343b970da9
commit
d89f5b20b2
2 changed files with 14 additions and 1 deletions
|
@ -709,6 +709,15 @@ typedef struct fd_set {
|
|||
#define Py_FORMAT_PARSETUPLE(func,p1,p2)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Specify alignment on compilers that support it.
|
||||
*/
|
||||
#if defined(__GNUC__) && __GNUC__ >= 3
|
||||
#define Py_ALIGNED(x) __attribute__((aligned(x)))
|
||||
#else
|
||||
#define Py_ALIGNED(x)
|
||||
#endif
|
||||
|
||||
/* Eliminate end-of-loop code not reached warnings from SunPro C
|
||||
* when using do{...}while(0) macros
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue