mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
7.3 and older does not have fdopendir(3). Add some EXTRA_PATCHES to not use
it. The weird part is that fdopendir(3) was being detected as available when it isn't. The root cause is still being investigated. Submitted by: Joseph Atkinson <jsa@wickedmachine.net> (maintainer, private mail)
This commit is contained in:
parent
64c6922378
commit
7f93df111e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=257703
@ -167,6 +167,11 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-modules__misc__inhibit__xdg.c \
|
||||
${FILESDIR}/extra-patch-modules__misc__inhibit__xscreensaver.c
|
||||
.endif
|
||||
|
||||
.if (${OSVERSION} < 702102)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-modules__access__file.c \
|
||||
${FILESDIR}/extra-patch-modules__access__fs.c
|
||||
.endif
|
||||
|
||||
.if (${OSVERSION} < 700042) && defined(WITH_QT4)
|
||||
IGNORE= does not build on FreeBSD 6.x with Qt4.x, set this OPTION to off or\
|
||||
define WITHOUT_QT4 to build CLI only version
|
||||
|
18
multimedia/vlc/files/extra-patch-modules__access__file.c
Normal file
18
multimedia/vlc/files/extra-patch-modules__access__file.c
Normal file
@ -0,0 +1,18 @@
|
||||
--- ./modules/access/file.c.orig 2010-07-12 15:38:44.000000000 -0400
|
||||
+++ ./modules/access/file.c 2010-07-12 15:40:49.000000000 -0400
|
||||
@@ -193,15 +193,8 @@
|
||||
* how to parse the data. The directory plugin will do it. */
|
||||
if (S_ISDIR (st.st_mode))
|
||||
{
|
||||
-#ifdef HAVE_FDOPENDIR
|
||||
- DIR *handle = fdopendir (fd);
|
||||
- if (handle == NULL)
|
||||
- goto error; /* Uh? */
|
||||
- return DirInit (p_access, handle);
|
||||
-#else
|
||||
msg_Dbg (p_access, "ignoring directory");
|
||||
goto error;
|
||||
-#endif
|
||||
}
|
||||
|
||||
access_sys_t *p_sys = malloc (sizeof (*p_sys));
|
12
multimedia/vlc/files/extra-patch-modules__access__fs.c
Normal file
12
multimedia/vlc/files/extra-patch-modules__access__fs.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- ./modules/access/fs.c.orig 2010-07-12 15:48:03.000000000 -0400
|
||||
+++ ./modules/access/fs.c 2010-07-12 15:48:51.000000000 -0400
|
||||
@@ -83,9 +83,6 @@
|
||||
change_string_list( psz_recursive_list, psz_recursive_list_text, 0 )
|
||||
add_string( "ignore-filetypes", "m3u,db,nfo,ini,jpg,jpeg,ljpg,gif,png,pgm,pgmyuv,pbm,pam,tga,bmp,pnm,xpm,xcf,pcx,tif,tiff,lbm,sfv,txt,sub,idx,srt,cue,ssa",
|
||||
NULL, IGNORE_TEXT, IGNORE_LONGTEXT, false )
|
||||
-#ifndef HAVE_FDOPENDIR
|
||||
- add_shortcut( "file" )
|
||||
-#endif
|
||||
add_shortcut( "directory" )
|
||||
add_shortcut( "dir" )
|
||||
set_callbacks( DirOpen, DirClose )
|
Loading…
Reference in New Issue
Block a user