Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1c07b4b4
Commit
1c07b4b4
authored
Oct 13, 2001
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for __sun instead of __sun__, since SUNWspro only defines the latter;
gcc defines both.
parent
a38d9169
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Modules/_cursesmodule.c
Modules/_cursesmodule.c
+1
-1
Modules/socketmodule.c
Modules/socketmodule.c
+1
-1
No files found.
Modules/_cursesmodule.c
View file @
1c07b4b4
...
@@ -118,7 +118,7 @@ extern int setupterm(char *,int,int *);
...
@@ -118,7 +118,7 @@ extern int setupterm(char *,int,int *);
#include <term.h>
#include <term.h>
#endif
#endif
#if defined(sgi) || defined(__sun
__
)
#if defined(sgi) || defined(__sun)
#define STRICT_SYSV_CURSES
/* Don't use ncurses extensions */
#define STRICT_SYSV_CURSES
/* Don't use ncurses extensions */
typedef
chtype
attr_t
;
/* No attr_t type is available */
typedef
chtype
attr_t
;
/* No attr_t type is available */
#endif
#endif
...
...
Modules/socketmodule.c
View file @
1c07b4b4
...
@@ -94,7 +94,7 @@ Socket methods:
...
@@ -94,7 +94,7 @@ Socket methods:
#ifdef HAVE_GETHOSTBYNAME_R
#ifdef HAVE_GETHOSTBYNAME_R
#if defined(_AIX) || defined(__osf__)
#if defined(_AIX) || defined(__osf__)
#define HAVE_GETHOSTBYNAME_R_3_ARG
#define HAVE_GETHOSTBYNAME_R_3_ARG
#elif defined(__sun
__
) || defined(__sgi)
#elif defined(__sun) || defined(__sgi)
#define HAVE_GETHOSTBYNAME_R_5_ARG
#define HAVE_GETHOSTBYNAME_R_5_ARG
#elif defined(linux)
#elif defined(linux)
/* Rely on the configure script */
/* Rely on the configure script */
...
...
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