[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#766248: plptools-dev: FTBFS[kfreebsd]: 'ENOMEDIUM' undeclared



Package: plptools
Version: 1.0.13-0.1
Severity: serious
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd

Hi,

plptools FTBFS on kfreebsd;  ENOMEDIUM is not a part of POSIX and we
don't have it.
https://buildd.debian.org/status/fetch.php?pkg=plptools&arch=kfreebsd-amd64&ver=1.0.13-0.1&stamp=1413381762

The closest thing we have is ENODEV.  Please find a simple patch for
this attached.  Thanks!

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- a/plpfuse/fuse.c
+++ b/plpfuse/fuse.c
@@ -32,6 +32,10 @@
 /* Maximum length of a generated psion xattr string */
 #define XATTR_MAXLEN 3
 
+#ifndef ENOMEDIUM
+#define ENOMEDIUM ENODEV
+#endif
+
 int debug;
 
 int

Reply to: