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
8eb92a01
Commit
8eb92a01
authored
Sep 19, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #608999: Fix portability problems with MIPSPro 7.x
parent
c34c4fc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
Modules/_hotshot.c
Modules/_hotshot.c
+6
-0
Modules/posixmodule.c
Modules/posixmodule.c
+6
-0
Modules/socketmodule.c
Modules/socketmodule.c
+8
-0
No files found.
Modules/_hotshot.c
View file @
8eb92a01
...
...
@@ -55,6 +55,12 @@ typedef struct timeval hs_time;
#define PATH_MAX 260
#endif
#if defined(__sgi) && _COMPILER_VERSION>700 && !defined(PATH_MAX)
/* fix PATH_MAX not being defined with MIPSPro 7.x
if mode is ANSI C (default) */
#define PATH_MAX 1024
#endif
#ifndef PATH_MAX
# ifdef MAX_PATH
# define PATH_MAX MAX_PATH
...
...
Modules/posixmodule.c
View file @
8eb92a01
...
...
@@ -129,6 +129,12 @@ extern int lstat(const char *, struct stat *);
extern
int
symlink
(
const
char
*
,
const
char
*
);
#endif
#if defined(__sgi)&&_COMPILER_VERSION>=700
/* declare ctermid_r if compiling with MIPSPro 7.x in ANSI C mode
(default) */
extern
char
*
ctermid_r
(
char
*
);
#endif
#ifndef HAVE_UNISTD_H
#if defined(PYCC_VACPP)
extern
int
mkdir
(
char
*
);
...
...
Modules/socketmodule.c
View file @
8eb92a01
...
...
@@ -155,6 +155,14 @@ shutdown(how) -- shut down traffic in one or both directions\n\
# include <os2.h>
#endif
#if defined(__sgi)&&_COMPILER_VERSION>700 && !_SGIAPI
/* make sure that the reentrant (gethostbyaddr_r etc)
functions are declared correctly if compiling with
MIPSPro 7.x in ANSI C mode (default) */
#define _SGIAPI 1
#include "netdb.h"
#endif
/* Generic includes */
#include <sys/types.h>
#include <signal.h>
...
...
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