[csw-devel] [PATCH 3/4] On Solaris, use memalign(), not posix_memalign()

Maciej Blizinski maciej at opencsw.org
Wed Feb 29 10:48:28 CET 2012


---
 include/vlc_common.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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
-- 
1.7.9



More information about the devel mailing list