[vlc-devel] [PATCH 2/2] Work around the lack of dirfd()

Brad Smith brad at comstyle.com
Tue Feb 28 10:24:29 CET 2012


On Tue, Feb 28, 2012 at 07:40:58AM +0000, Maciej (Matchek) Blizi??ski wrote:
> 2012/2/28 Francois Cartegnie <fcvlcdev at free.fr>:
> > As mentioned, the forked code is for 1.1.
> > The master is out of sync since feb 11, especially because of a new
> > automake version requirement which is (was?) not available on S10.
> 
> The automake version is not a problem for me, I'm using OpenCSW automake.
> 
> http://www.opencsw.org/packages/automake/
> 
> The ./configure step works fine (the shell compatibility issues
> aside). The current problem with building VLC is that vlc_common.h
> assumes the existence of posix_memalign, not available on Solaris10.

Solaris does not have posix_memalign(). This will help..


diff --git a/include/vlc_common.h b/include/vlc_common.h
index 545b1cd..f2e7118 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -904,7 +904,7 @@ static void vlc_free(void *ptr)
     if (ptr)
         free((char*)ptr - ((char*)ptr)[-1]);
 }
-#elif defined(__ANDROID__)
+#elif defined(__ANDROID__) || defined(__sun__)
 # define vlc_memalign(align, size) memalign(align, size)
 # define vlc_free(base) free(base)
 #else

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the vlc-devel mailing list