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
9d878fc4
Commit
9d878fc4
authored
May 01, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2304 from jacquesg/solaris
Solaris!
parents
c522bed0
183aa4f8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
CMakeLists.txt
+5
-1
src/common.h
+1
-0
src/config.c
+2
-2
src/remote.c
+1
-1
No files found.
CMakeLists.txt
View file @
9d878fc4
...
...
@@ -172,7 +172,7 @@ IF (ENABLE_TRACE STREQUAL "ON")
ENDIF
()
# Include POSIX regex when it is required
IF
(
WIN32 OR AMIGA OR ANDROID
)
IF
(
WIN32 OR AMIGA OR ANDROID
OR CMAKE_SYSTEM_NAME MATCHES
"(Solaris|SunOS)"
)
INCLUDE_DIRECTORIES
(
deps/regex
)
SET
(
SRC_REGEX deps/regex/regex.c
)
ENDIF
()
...
...
@@ -290,6 +290,10 @@ IF (MSVC)
ELSE
()
SET
(
CMAKE_C_FLAGS
"-D_GNU_SOURCE -Wall -Wextra
${
CMAKE_C_FLAGS
}
"
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"(Solaris|SunOS)"
)
SET
(
CMAKE_C_FLAGS
"-std=c99 -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
${
CMAKE_C_FLAGS
}
"
)
ENDIF
()
IF
(
WIN32 AND NOT CYGWIN
)
SET
(
CMAKE_C_FLAGS_DEBUG
"-D_DEBUG"
)
ENDIF
()
...
...
src/common.h
View file @
9d878fc4
...
...
@@ -44,6 +44,7 @@
#else
# include <unistd.h>
# include <strings.h>
# ifdef GIT_THREADS
# include <pthread.h>
# include <sched.h>
...
...
src/config.c
View file @
9d878fc4
...
...
@@ -1144,7 +1144,7 @@ int git_config_parse_int64(int64_t *out, const char *value)
}
fail_parse:
giterr_set
(
GITERR_CONFIG
,
"Failed to parse '%s' as an integer"
,
value
);
giterr_set
(
GITERR_CONFIG
,
"Failed to parse '%s' as an integer"
,
value
?
value
:
"(null)"
);
return
-
1
;
}
...
...
@@ -1164,7 +1164,7 @@ int git_config_parse_int32(int32_t *out, const char *value)
return
0
;
fail_parse:
giterr_set
(
GITERR_CONFIG
,
"Failed to parse '%s' as a 32-bit integer"
,
value
);
giterr_set
(
GITERR_CONFIG
,
"Failed to parse '%s' as a 32-bit integer"
,
value
?
value
:
"(null)"
);
return
-
1
;
}
...
...
src/remote.c
View file @
9d878fc4
...
...
@@ -73,7 +73,7 @@ static int ensure_remote_name_is_valid(const char *name)
if
(
!
git_remote_is_valid_name
(
name
))
{
giterr_set
(
GITERR_CONFIG
,
"'%s' is not a valid remote name."
,
name
);
"'%s' is not a valid remote name."
,
name
?
name
:
"(null)"
);
error
=
GIT_EINVALIDSPEC
;
}
...
...
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