about summary refs log tree commit diff
path: root/pkgs/tools/package-management/checkinstall/scandir.patch
blob: ae40100a980404e2669c180f0433b67a661c6dbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
diff -rc -x '*~' checkinstall-1.6.2-orig/installwatch/installwatch.c checkinstall-1.6.2/installwatch/installwatch.c
*** checkinstall-1.6.2-orig/installwatch/installwatch.c	2008-11-16 17:20:53.000000000 +0100
--- checkinstall-1.6.2/installwatch/installwatch.c	2010-02-08 16:35:17.000000000 +0100
***************
*** 100,106 ****
  static int (*true_lxstat)(int,const char *,struct stat *);
  static int (*true_scandir)(	const char *,struct dirent ***,
  				int (*)(const struct dirent *),
! 				int (*)(const void *,const void *));
  static int (*true_symlink)(const char *, const char *);
  static int (*true_truncate)(const char *, TRUNCATE_T);
  static int (*true_unlink)(const char *);
--- 100,106 ----
  static int (*true_lxstat)(int,const char *,struct stat *);
  static int (*true_scandir)(	const char *,struct dirent ***,
  				int (*)(const struct dirent *),
! 				int (*)(const struct dirent **,const struct dirent **));
  static int (*true_symlink)(const char *, const char *);
  static int (*true_truncate)(const char *, TRUNCATE_T);
  static int (*true_unlink)(const char *);
***************
*** 120,126 ****
  static struct dirent64 *(*true_readdir64)(DIR *dir);
  static int (*true_scandir64)(	const char *,struct dirent64 ***,
  				int (*)(const struct dirent64 *),
! 				int (*)(const void *,const void *));
  static int (*true_xstat64)(int,const char *, struct stat64 *);
  static int (*true_lxstat64)(int,const char *, struct stat64 *);
  static int (*true_truncate64)(const char *, __off64_t);
--- 120,126 ----
  static struct dirent64 *(*true_readdir64)(DIR *dir);
  static int (*true_scandir64)(	const char *,struct dirent64 ***,
  				int (*)(const struct dirent64 *),
! 				int (*)(const struct dirent64 **,const struct dirent64 **));
  static int (*true_xstat64)(int,const char *, struct stat64 *);
  static int (*true_lxstat64)(int,const char *, struct stat64 *);
  static int (*true_truncate64)(const char *, __off64_t);
***************
*** 3077,3085 ****
  	return result;
  }
  
! int scandir(	const char *dir,struct dirent ***namelist,
  		int (*select)(const struct dirent *),
! 		int (*compar)(const void *,const void *)	) {
  	int result;
  
  	if (!libc_handle)
--- 3077,3085 ----
  	return result;
  }
  
! int scandir(	const char * dir,struct dirent ***namelist,
  		int (*select)(const struct dirent *),
! 		int (*compar)(const struct dirent **,const struct dirent **)	) {
  	int result;
  
  	if (!libc_handle)
***************
*** 3691,3697 ****
  
  int scandir64(	const char *dir,struct dirent64 ***namelist,
  		int (*select)(const struct dirent64 *),
! 		int (*compar)(const void *,const void *)	) {
  	int result;
  
  	if (!libc_handle)
--- 3691,3697 ----
  
  int scandir64(	const char *dir,struct dirent64 ***namelist,
  		int (*select)(const struct dirent64 *),
! 		int (*compar)(const struct dirent64 **,const struct dirent64 **)	) {
  	int result;
  
  	if (!libc_handle)