File checkinstall-readlink.patch of Package checkinstall

--- installwatch-0.7.0beta5/installwatch.c
+++ installwatch-0.7.0beta5/installwatch.c
@@ -77,7 +77,7 @@
 static int (*true_open)(const char *, int, ...);
 static DIR *(*true_opendir)(const char *);
 static struct dirent *(*true_readdir)(DIR *dir);
-static int (*true_readlink)(const char*,char *,size_t);
+static ssize_t (*true_readlink)(const char*,char *,size_t);
 static char *(*true_realpath)(const char *,char *);
 static int (*true_rename)(const char *, const char *);
 static int (*true_rmdir)(const char *);
@@ -2693,7 +2693,7 @@
 	return result;
 }
 
-int readlink(const char *path,char *buf,size_t bufsiz) {
+ssize_t readlink(const char *path,char *buf,size_t bufsiz) {
 	int result;
 	instw_t instw;
 	int status;
openSUSE Build Service is sponsored by