Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c6d58bc3
Commit
c6d58bc3
authored
Aug 31, 2009
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file access: only use linux/magic.h when it's present
parent
087681d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
configure.ac
configure.ac
+1
-1
modules/access/file.c
modules/access/file.c
+5
-2
No files found.
configure.ac
View file @
c6d58bc3
...
...
@@ -863,7 +863,7 @@ AC_CHECK_HEADERS([net/if.h], [], [],
])
if test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"; then
AC_CHECK_HEADERS(machine/param.h sys/shm.h)
AC_CHECK_HEADERS([linux/version.h linux/dccp.h scsi/scsi.h])
AC_CHECK_HEADERS([linux/version.h linux/dccp.h scsi/scsi.h
linux/magic.h
])
AC_CHECK_HEADERS(syslog.h)
fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
...
...
modules/access/file.c
View file @
c6d58bc3
...
...
@@ -49,7 +49,9 @@
#endif
#if defined (__linux__)
# include <sys/vfs.h>
#ifdef HAVE_LINUX_MAGIC_H
# include <linux/magic.h>
#endif
#elif defined (HAVE_SYS_MOUNT_H)
# include <sys/param.h>
# include <sys/mount.h>
...
...
@@ -143,7 +145,8 @@ static bool IsRemote (int fd)
#if defined(MNT_LOCAL)
return
!
(
stf
.
f_flags
&
MNT_LOCAL
);
#elif defined (__linux__)
#else
# ifdef HAVE_LINUX_MAGIC_H
switch
(
stf
.
f_type
)
{
case
AFS_SUPER_MAGIC
:
...
...
@@ -155,7 +158,7 @@ static bool IsRemote (int fd)
return
true
;
}
return
false
;
# endif
#endif
#else
/* !HAVE_FSTATFS */
(
void
)
fd
;
...
...
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