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
0e5a7338
Commit
0e5a7338
authored
Mar 21, 2002
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solve sync() signature conflict differently: manually return 0 if
we have GUSI's void sync().
parent
99286f96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Mac/Modules/macmodule.c
Mac/Modules/macmodule.c
+5
-3
No files found.
Mac/Modules/macmodule.c
View file @
0e5a7338
...
...
@@ -58,11 +58,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#endif
/* USE_GUSI */
#ifdef USE_GUSI2
#define sync bad_sync
#include <unistd.h>
#include <fcntl.h>
#undef sync
int
sync
(
void
);
#else
#define mode_t int
#include <fcntl.h>
...
...
@@ -643,7 +640,12 @@ mac_sync(self, args)
if
(
!
PyArg_ParseTuple
(
args
,
""
))
return
NULL
;
Py_BEGIN_ALLOW_THREADS
#ifdef USE_GUSI2
sync
();
res
=
0
;
#else
res
=
sync
();
#endif
Py_END_ALLOW_THREADS
if
(
res
!=
0
)
return
mac_error
();
...
...
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