Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
2fcf9c82
Commit
2fcf9c82
authored
Aug 30, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
posix: Fix undeclared prototype
parent
6f1d23b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
src/posix.h
+9
-7
src/win32/posix.c
+2
-0
No files found.
src/posix.h
View file @
2fcf9c82
...
...
@@ -8,12 +8,6 @@
#include <fcntl.h>
#include <time.h>
#ifdef GIT_WIN32
# include "win32/posix.h"
#else
# include "unix/posix.h"
#endif
#define S_IFGITLINK 0160000
#define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
...
...
@@ -23,7 +17,6 @@
typedef
int
git_file
;
/**
* Standard POSIX Methods
*
...
...
@@ -51,4 +44,13 @@ extern int p_getcwd(char *buffer_out, size_t size);
#define p_chmod(p,m) chmod(p, m)
#define p_close(fd) close(fd)
/**
* Platform-dependent methods
*/
#ifdef GIT_WIN32
# include "win32/posix.h"
#else
# include "unix/posix.h"
#endif
#endif
src/win32/posix.c
View file @
2fcf9c82
...
...
@@ -232,6 +232,8 @@ int p_snprintf(char *buffer, size_t count, const char *format, ...)
return
r
;
}
extern
int
p_creat
(
const
char
*
path
,
int
mode
);
int
p_mkstemp
(
char
*
tmp_path
)
{
int
r
;
...
...
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