Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
38227c24
Commit
38227c24
authored
Jan 03, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dirfd() hacks
parent
f6287174
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
compat/dirfd.c
compat/dirfd.c
+3
-5
include/vlc_fixups.h
include/vlc_fixups.h
+1
-4
No files found.
compat/dirfd.c
View file @
38227c24
...
@@ -25,12 +25,10 @@
...
@@ -25,12 +25,10 @@
#include <dirent.h>
#include <dirent.h>
#include <errno.h>
#include <errno.h>
int
dirfd
(
DIR
*
dir
)
int
(
dirfd
)
(
DIR
*
dir
)
{
{
#if defined (__sun__) || defined (__FreeBSD__)
#ifdef dirfd
return
dir
->
dd_fd
;
return
dirfd
(
dir
);
#elif defined (__APPLE__)
return
dir
->
__dd_fd
;
#else
#else
(
void
)
dir
;
(
void
)
dir
;
# ifdef ENOTSUP
# ifdef ENOTSUP
...
...
include/vlc_fixups.h
View file @
38227c24
...
@@ -183,10 +183,7 @@ int fsync (int fd);
...
@@ -183,10 +183,7 @@ int fsync (int fd);
/* dirent.h */
/* dirent.h */
#ifndef HAVE_DIRFD
#ifndef HAVE_DIRFD
#if defined(__APPLE__) || defined(__OS2__) || defined(__FreeBSD__)
int
(
dirfd
)
(
DIR
*
);
#undef dirfd
#endif
int
dirfd
(
DIR
*
);
#endif
#endif
#ifndef HAVE_FDOPENDIR
#ifndef HAVE_FDOPENDIR
...
...
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