Package: dirdiff Version: 2.1-7.2.tpo Severity: minor Tags: patch The attached patch fixes this:
filecmp.c: In function ‘FileCmpCmd’: filecmp.c:278:2: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration] close(f1); ^~~~~ filecmp.c:293:11: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration] n1 = read(f1, b1 + k1, BSIZE - k1); ^~~~ -- System Information: Debian Release: 9.5 APT prefers stable APT policy: (990, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-8-amd64 (SMP w/8 CPU cores) Locale: LANG=de_CH.utf8, LC_CTYPE=de_CH.utf8 (charmap=UTF-8), LANGUAGE=de_CH:de (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages dirdiff depends on: ii libc6 2.24-11+deb9u3 ii libtcl8.6 8.6.6+dfsg-1+b1 ii tk8.6 8.6.6-1+b1 dirdiff recommends no packages. dirdiff suggests no packages. -- no debconf information
--- cvs-local.orig/filecmp.c +++ cvs-local/filecmp.c @@ -11,6 +11,7 @@ #include <ctype.h> #include <tcl.h> #include <sys/fcntl.h> +#include <unistd.h> /* close, read */ #define BSIZE 32768 #define MAXTAGLEN 512 /* max tag length for sanity, < BSIZE */