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

[PATCH] fix clisp build issues



Hello

This patches makes it possible for clisp to compile under Hurd using debuild. See "UNIX error" in the log available at https://buildd.debian.org/status/fetch.php?pkg=clisp&arch=hurd-i386&ver=1%3A2.49-10&stamp=1440769077

I'll also submit the patch to the clisp project so that it can also be integrated upstream.

Flávio
Description: Define IS_EINVAL_EXTRA for Hurd systems
 clisp (1:2.49-10) unstable; urgency=medium
 .
   * Makes clisp compilable 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-2.49.orig/src/stream.d
+++ clisp-2.49/src/stream.d
@@ -3483,6 +3483,8 @@ local void clear_tty_input (Handle handl
   #define IS_EINVAL_EXTRA  ((errno==EBADF)||(errno==EACCES)||(errno==EBADRQC))
 #elif defined(UNIX_DARWIN) || defined(UNIX_FREEBSD) || defined(UNIX_NETBSD) || defined(UNIX_OPENBSD)
   #define IS_EINVAL_EXTRA  ((errno==EOPNOTSUPP)||(errno==ENOTSUP)||(errno==ENODEV))
+#elif defined(UNIX_HURD)
+  #define IS_EINVAL_EXTRA  ((errno==EOPNOTSUPP)||(errno==EMIG_BAD_ID))
 #else
   #define IS_EINVAL_EXTRA  0
 #endif

Reply to: