termux-packages/disabled-packages/checkinstall/installwatch.c.patch

36 lines
1.0 KiB
Diff

diff -u -r ../checkinstall-1.6.2/installwatch/installwatch.c ./installwatch/installwatch.c
--- ../checkinstall-1.6.2/installwatch/installwatch.c 2008-11-16 11:20:53.000000000 -0500
+++ ./installwatch/installwatch.c 2016-10-28 16:12:42.017221485 -0400
@@ -2938,13 +2938,8 @@
return result;
}
-#if (GLIBC_MINOR <= 4)
-int readlink(const char *path,char *buf,size_t bufsiz) {
- int result;
-#else
ssize_t readlink(const char *path,char *buf,size_t bufsiz) {
ssize_t result;
-#endif
instw_t instw;
int status;
@@ -3079,7 +3074,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)
@@ -3691,7 +3686,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)