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
6887e9db
Commit
6887e9db
authored
Sep 14, 2020
by
Philipp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed FreeBSD-related macros.
parent
e937a2aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
tests/clar/fs.h
+1
-7
No files found.
tests/clar/fs.h
View file @
6887e9db
...
...
@@ -277,12 +277,6 @@ cl_fs_cleanup(void)
# include <copyfile.h>
#endif
#if defined(__FreeBSD__)
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
#endif
static
void
basename_r
(
const
char
**
out
,
int
*
out_len
,
const
char
*
in
)
{
size_t
in_len
=
strlen
(
in
),
start_pos
;
...
...
@@ -362,7 +356,7 @@ fs_copyfile_helper(const char *source, size_t source_len, const char *dest, int
cl_must_pass
((
in
=
open
(
source
,
O_RDONLY
)));
cl_must_pass
((
out
=
open
(
dest
,
O_WRONLY
|
O_CREAT
|
O_TRUNC
,
dest_mode
)));
#if USE_FCOPYFILE &&
(defined(__APPLE__) || defined(__FreeBSD__)
)
#if USE_FCOPYFILE &&
defined(__APPLE__
)
((
void
)(
source_len
));
/* unused */
cl_must_pass
(
fcopyfile
(
in
,
out
,
0
,
COPYFILE_DATA
));
#elif USE_SENDFILE && defined(__linux__)
...
...
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