File libcompizconfig-configure-retval.patch of Package libcompizconfig
--- a/configure.ac +++ b/configure.ac @@ -109,7 +109,7 @@ AC_CACHE_CHECK([whether we have the POSIX compatible scandir() prototype], AC_LANG_CPLUSPLUS AC_TRY_COMPILE([ # include <dirent.h> - int func (const char *d, dirent ***list, void *sort) { + void func (const char *d, dirent ***list, void *sort) { int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort); } ],[