freebsd-ports/multimedia/vlc/files/extra-patch-modules__access__file.c
Wesley Shields 7f93df111e 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)
2010-07-13 00:35:53 +00:00

18 lines
578 B
C

--- ./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));