summaryrefslogtreecommitdiff
path: root/debian/patches/clisp-hurd-einval-extra.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/clisp-hurd-einval-extra.patch')
-rw-r--r--debian/patches/clisp-hurd-einval-extra.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/clisp-hurd-einval-extra.patch b/debian/patches/clisp-hurd-einval-extra.patch
new file mode 100644
index 0000000..9a2f229
--- /dev/null
+++ b/debian/patches/clisp-hurd-einval-extra.patch
@@ -0,0 +1,20 @@
+Description: Define IS_EINVAL_EXTRA for Hurd systems
+ clisp (1:2.49-10) unstable; urgency=medium
+ .
+ * Makes clisp compile under debuild
+ * Solves https://lists.debian.org/debian-hurd/2012/06/msg00053.html)
+Author: Flavio Cruz <flaviocruz@gmail.com>
+
+Last-Update: 2015-09-23
+
+--- clisp.orig/src/stream.d
++++ clisp/src/stream.d
+@@ -3501,6 +3501,8 @@
+ #define IS_EINVAL_EXTRA ((errno==EOPNOTSUPP)||(errno==ENOTSUP)||(errno==ENODEV))
+ #elif defined(UNIX_SUNOS5)
+ #define IS_EINVAL_EXTRA ((errno==ENXIO))
++#elif defined(UNIX_HURD)
++ #define IS_EINVAL_EXTRA ((errno==EOPNOTSUPP)||(errno==EMIG_BAD_ID))
+ #else
+ #define IS_EINVAL_EXTRA 0
+ #endif