forked from pool/cdecl
- Add unbreak-gnulib.diff
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cdecl?expand=0&rev=47
This commit is contained in:
parent
5b6b257a52
commit
d3420bdd5c
@ -4,6 +4,7 @@ Sun Aug 15 16:06:00 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
|||||||
- Update to release 10.3
|
- Update to release 10.3
|
||||||
* Marking functions and conversion operators = delete is now
|
* Marking functions and conversion operators = delete is now
|
||||||
supported.
|
supported.
|
||||||
|
- Add unbreak-gnulib.diff
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 30 16:05:38 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
Wed Jun 30 16:05:38 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
@ -25,6 +25,7 @@ Group: Development/Languages/C and C++
|
|||||||
URL: https://github.com/paul-j-lucas/cdecl/
|
URL: https://github.com/paul-j-lucas/cdecl/
|
||||||
|
|
||||||
Source: https://github.com/paul-j-lucas/cdecl/releases/download/cdecl-%version/cdecl-%version.tar.gz
|
Source: https://github.com/paul-j-lucas/cdecl/releases/download/cdecl-%version/cdecl-%version.tar.gz
|
||||||
|
Patch1: unbreak-gnulib.diff
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
|
26
unbreak-gnulib.diff
Normal file
26
unbreak-gnulib.diff
Normal 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. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user