- Add unbreak-gnulib.diff

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cdecl?expand=0&rev=47
This commit is contained in:
Jan Engelhardt 2021-08-15 17:25:35 +00:00 committed by Git OBS Bridge
parent 5b6b257a52
commit d3420bdd5c
3 changed files with 28 additions and 0 deletions

View File

@ -4,6 +4,7 @@ Sun Aug 15 16:06:00 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Update to release 10.3
* Marking functions and conversion operators = delete is now
supported.
- Add unbreak-gnulib.diff
-------------------------------------------------------------------
Wed Jun 30 16:05:38 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -25,6 +25,7 @@ Group: Development/Languages/C and C++
URL: https://github.com/paul-j-lucas/cdecl/
Source: https://github.com/paul-j-lucas/cdecl/releases/download/cdecl-%version/cdecl-%version.tar.gz
Patch1: unbreak-gnulib.diff
BuildRequires: bison
BuildRequires: flex
BuildRequires: ncurses-devel

26
unbreak-gnulib.diff Normal file
View File

@ -0,0 +1,26 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2021-08-15 19:20:30.942589995 +0200
Compiler said _GL_ATTRIBUTE_MALLOC was undefined.
This was a breaking change in gnulib 48ece5c3f2185f52ab8cd73ceac9bd9f0e01eac6.
---
lib/stdlib.in.h | 6 ++++++
1 file changed, 6 insertions(+)
Index: cdecl-10.3/lib/stdlib.in.h
===================================================================
--- cdecl-10.3.orig/lib/stdlib.in.h
+++ cdecl-10.3/lib/stdlib.in.h
@@ -108,6 +108,12 @@ struct random_data
# define _GL_ATTRIBUTE_PURE /* empty */
# endif
#endif
+#ifndef _GL_ATTRIBUTE_MALLOC
+#define _GL_ATTRIBUTE_MALLOC
+#endif
+#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
+#define _GL_ATTRIBUTE_DEALLOC_FREE
+#endif
/* The definition of _Noreturn is copied here. */