diff --git a/clisp-linux.patch b/clisp-linux.patch new file mode 100644 index 0000000..86a3306 --- /dev/null +++ b/clisp-linux.patch @@ -0,0 +1,20 @@ +--- ./modules/bindings/glibc/linux.lisp.orig 2008-10-08 10:36:19.000000000 -0600 ++++ ./modules/bindings/glibc/linux.lisp 2012-07-25 19:05:07.014592097 -0600 +@@ -86,7 +86,7 @@ + + (def-c-type __key_t) ; int + +-(c-lines "#include ~%") ++(c-lines "#include ~%") + (def-c-type __ipc_pid_t) ; ushort + + ; --------------------------- ----------------------------------- +@@ -293,6 +293,8 @@ + ;; for robust mutexes + (def-c-const EOWNERDEAD (:documentation "Owner died")) ; 130 + (def-c-const ENOTRECOVERABLE (:documentation "State not recoverable")) ; 131 ++(def-c-const ERFKILL (:documentation "Operation not possible due to RF-kill")) ; 132 ++(def-c-const EHWPOISON (:documentation "Memory page has hardware error")) ; 133 + + ; -------------------------- ----------------------------------- + diff --git a/clisp.changes b/clisp.changes index af83790..ea67cff 100644 --- a/clisp.changes +++ b/clisp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 27 20:10:16 UTC 2012 - aj@suse.de + +- Fix build with glibc 2.16 (clisp-linux.patch taken from Fedora). + ------------------------------------------------------------------- Fri Jul 13 06:43:29 UTC 2012 - adrian@suse.de diff --git a/clisp.spec b/clisp.spec index c864f8c..0cc6ac1 100644 --- a/clisp.spec +++ b/clisp.spec @@ -62,6 +62,7 @@ Patch7: clisp-2.39-ia64-wooh.dif Patch8: clisp-2.39-clx.dif Patch10: ffcall-1.10+2.43.dif Patch11: fix-build-in-qemu.patch +Patch12: clisp-linux.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global vimdir %{_datadir}/vim/site/after/syntax %global xarch ppc64 s390x armv4l @@ -107,6 +108,7 @@ contains two nice applications. # qemu does not support stack overflows well ;) %patch11 -p0 -b .qemu %endif +%patch12 -p0 %build #