Glibc 2.10 changed the signatures of scandir{,64}. Thanks to Joao Pinto
for the patch.
--- installwatch/installwatch.c	2009-10-09 21:32:28.456079268 +0100
+++ installwatch/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)
