diff --git a/cdecl.spec b/cdecl.spec index 7b60b05..9f687ee 100644 --- a/cdecl.spec +++ b/cdecl.spec @@ -42,8 +42,7 @@ library. %prep %setup -%patch -P 1 -p1 -%patch2 -p1 +%patch -P 1 -P 2 -p1 %build make CFLAGS="%optflags -DUSE_READLINE -DOLD_READLINE" %{?_smp_mflags}; diff --git a/keyword-identifier.patch b/keyword-identifier.patch index ec496a3..ce6b210 100644 --- a/keyword-identifier.patch +++ b/keyword-identifier.patch @@ -1,3 +1,8 @@ +From: schwab@suse.de +Date: Thu Jun 11 09:08:54 +0000 + +"restrict" is a keyword used by the programming language. Rename it. + Index: cdecl-2.5/cdecl.c =================================================================== --- cdecl-2.5.orig/cdecl.c