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
1fa6d663
Commit
1fa6d663
authored
May 24, 2009
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix building under Windows (where SIZEOF_PID_T apparently doesn't exist)
parent
1224e5a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
Modules/posixmodule.c
Modules/posixmodule.c
+1
-3
No files found.
Modules/posixmodule.c
View file @
1fa6d663
...
@@ -304,8 +304,7 @@ extern int lstat(const char *, struct stat *);
...
@@ -304,8 +304,7 @@ extern int lstat(const char *, struct stat *);
#endif
/* UNION_WAIT */
#endif
/* UNION_WAIT */
/* Issue #1983: pid_t can be longer than a C long on some systems */
/* Issue #1983: pid_t can be longer than a C long on some systems */
#ifdef SIZEOF_PID_T
#if !defined(SIZEOF_PID_T) || SIZEOF_PID_T == SIZEOF_INT
#if SIZEOF_PID_T == SIZEOF_INT
#define PARSE_PID "i"
#define PARSE_PID "i"
#define PyLong_FromPid PyLong_FromLong
#define PyLong_FromPid PyLong_FromLong
#define PyLong_AsPid PyLong_AsLong
#define PyLong_AsPid PyLong_AsLong
...
@@ -319,7 +318,6 @@ extern int lstat(const char *, struct stat *);
...
@@ -319,7 +318,6 @@ extern int lstat(const char *, struct stat *);
#define PyLong_AsPid PyLong_AsLongLong
#define PyLong_AsPid PyLong_AsLongLong
#else
#else
#error "sizeof(pid_t) is neither sizeof(int), sizeof(long) or sizeof(long long)"
#error "sizeof(pid_t) is neither sizeof(int), sizeof(long) or sizeof(long long)"
#endif
#endif
/* SIZEOF_PID_T */
#endif
/* SIZEOF_PID_T */
/* Don't use the "_r" form if we don't need it (also, won't have a
/* Don't use the "_r" form if we don't need it (also, won't have a
...
...
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