Sophie

Sophie

distrib > Mageia > 3 > x86_64 > media > core-release-src > by-pkgid > af4488ca97ce340135af4eeff0e9b99c > files > 1

checkinstall-1.6.2.16-8.mga3.src.rpm

Glibc 2.10 changed the signatures of scandir{,64}. Thanks to Joao Pinto
for the patch.
Index: checkinstall-1.6.1/installwatch-0.7.0beta5/installwatch.c
===================================================================
--- checkinstall-1.6.1.orig/installwatch-0.7.0beta5/installwatch.c	2009-10-09 21:32:28.456079268 +0100
+++ checkinstall-1.6.1/installwatch-0.7.0beta5/installwatch.c	2009-10-09 21:31:49.596530778 +0100
@@ -2834,7 +2834,7 @@
 
 int scandir(	const char *dir,struct dirent ***namelist,
 		int (*select)(const struct dirent *),
-		int (*compar)(const void *,const void *)	) {
+		int (*compar)(const struct dirent **,const struct dirent **)	) {
 	int result;
 
 	if (!libc_handle)
@@ -3366,7 +3366,7 @@
 
 int scandir64(	const char *dir,struct dirent64 ***namelist,
 		int (*select)(const struct dirent64 *),
-		int (*compar)(const void *,const void *)	) {
+		int (*compar)(const struct dirent64 **,const struct dirent64 **)	) {
 	int result;
 
 	if (!libc_handle)