mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Test for __sun instead of __sun__, since SUNWspro only defines the latter;
gcc defines both.
This commit is contained in:
parent
a38d9169bc
commit
1c07b4b4fb
2 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ extern int setupterm(char *,int,int *);
|
|||
#include <term.h>
|
||||
#endif
|
||||
|
||||
#if defined(sgi) || defined(__sun__)
|
||||
#if defined(sgi) || defined(__sun)
|
||||
#define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
|
||||
typedef chtype attr_t; /* No attr_t type is available */
|
||||
#endif
|
||||
|
|
|
@ -94,7 +94,7 @@ Socket methods:
|
|||
#ifdef HAVE_GETHOSTBYNAME_R
|
||||
#if defined(_AIX) || defined(__osf__)
|
||||
#define HAVE_GETHOSTBYNAME_R_3_ARG
|
||||
#elif defined(__sun__) || defined(__sgi)
|
||||
#elif defined(__sun) || defined(__sgi)
|
||||
#define HAVE_GETHOSTBYNAME_R_5_ARG
|
||||
#elif defined(linux)
|
||||
/* Rely on the configure script */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue