mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Patch #608999: Fix portability problems with MIPSPro 7.x
This commit is contained in:
parent
c34c4fc3ab
commit
8eb92a014b
3 changed files with 20 additions and 0 deletions
|
@ -55,6 +55,12 @@ typedef struct timeval hs_time;
|
||||||
#define PATH_MAX 260
|
#define PATH_MAX 260
|
||||||
#endif
|
#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
|
#ifndef PATH_MAX
|
||||||
# ifdef MAX_PATH
|
# ifdef MAX_PATH
|
||||||
# define PATH_MAX MAX_PATH
|
# define PATH_MAX MAX_PATH
|
||||||
|
|
|
@ -129,6 +129,12 @@ extern int lstat(const char *, struct stat *);
|
||||||
extern int symlink(const char *, const char *);
|
extern int symlink(const char *, const char *);
|
||||||
#endif
|
#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
|
#ifndef HAVE_UNISTD_H
|
||||||
#if defined(PYCC_VACPP)
|
#if defined(PYCC_VACPP)
|
||||||
extern int mkdir(char *);
|
extern int mkdir(char *);
|
||||||
|
|
|
@ -155,6 +155,14 @@ shutdown(how) -- shut down traffic in one or both directions\n\
|
||||||
# include <os2.h>
|
# include <os2.h>
|
||||||
#endif
|
#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 */
|
/* Generic includes */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue