Package: gv
Version: 3.6.1-11
Severity: important
Tags: patch

gv fails to build on GNU/kFreeBSD with the following error:
file.c: In function `file_fileIsNotUseful':
file.c:320: error: `ENODATA' undeclared (first use in this function)
file.c:320: error: (Each undeclared identifier is reported only once
file.c:320: error: for each function it appears in.)
make[3]: *** [file.o] Error 1

This is because ENODATA is not POSIX and not defined by the FreeBSD
kernel. I suggest to use ENOMSG instead, which is POSIX.

You will find attached a patch to do that.

Thanks in advance.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.3-10
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
--- gv-3.6.1.orig/src/file.c
+++ gv-3.6.1/src/file.c
@@ -296,7 +296,7 @@
     errno = EISDIR;
   } else if (s.st_size == 0) {
     r = 1;
-    errno = ENODATA;
+    errno = ENOMSG;
   }
   IMESSAGE(r)
   ENDMESSAGE(file_fileIsNotUseful)

Reply via email to