Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9bac00d1
Commit
9bac00d1
authored
Nov 26, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefetch: include cosmetics
parent
0010afc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
modules/stream_filter/prefetch.c
modules/stream_filter/prefetch.c
+14
-12
No files found.
modules/stream_filter/prefetch.c
View file @
9bac00d1
...
...
@@ -28,22 +28,24 @@
#include <sys/types.h>
#include <unistd.h>
#ifdef HAVE_MMAP
#include <sys/mman.h>
#ifndef MAP_ANONYMOUS
# define MAP_ANONYMOUS MAP_ANON
#endif
#
include <sys/mman.h>
#
ifndef MAP_ANONYMOUS
#
define MAP_ANONYMOUS MAP_ANON
#
endif
#elif !defined(__OS2__)
#include <errno.h>
#define MAP_FAILED ((void *)-1)
#define mmap(a,l,p,f,d,o) \
((void)(a), (void)(l), (void)(d), (void)(o), errno = ENOMEM, MAP_FAILED)
#define munmap(a,l) \
((void)(a), (void)(l), errno = EINVAL, -1)
#define sysconf(a) 1
#
include <errno.h>
#
define MAP_FAILED ((void *)-1)
#
define mmap(a,l,p,f,d,o) \
((void)(a), (void)(l), (void)(d), (void)(o), errno = ENOMEM, MAP_FAILED)
#
define munmap(a,l) \
((void)(a), (void)(l), errno = EINVAL, -1)
#
define sysconf(a) 1
#endif
#if defined (_WIN32)
#include <windows.h>
#
include <windows.h>
#endif
#include <vlc_common.h>
...
...
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