gnu: openscad: Update to 2021.01 [maybe fixes TALOS-2020-1222, TALOS-2020-1223].
[jackhill/guix/guix.git] / gnu / packages / patches / dbacl-include-locale.h.patch
1 From: Tobias Geerinckx-Rice <me@tobias.gr>
2 Date: Sat, 11 Apr 2020 03:02:04 +0200
3 Subject: [PATCH] gnu: dbacl: Include <locale.h> in dbacl.h.
4
5 Copied verbatim[0] from Debian.
6
7 [0]: https://sources.debian.org/data/main/d/dbacl/1.14.1-2/debian/patches/05-locale-h.patch
8
9 Description: Add missing <locale.h> include in dbacl.h
10 Author: Fabian Wolff <fabi.wolff@arcor.de>
11 Bug-Debian: https://bugs.debian.org/916182
12 Last-Update: 2019-08-25
13 ---
14 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
15 --- a/src/dbacl.h
16 +++ b/src/dbacl.h
17 @@ -21,6 +21,8 @@
18 #ifndef DBACL_H
19 #define DBACL_H
20
21 +#include <locale.h>
22 +
23 #ifdef HAVE_CONFIG_H
24 #undef HAVE_CONFIG_H
25 #include "config.h"
26 --- a/src/Makefile.am
27 +++ b/src/Makefile.am
28 @@ -28,7 +28,7 @@
29 # stuff_SOURCES = stuff.c stuff.h fram.c stuff-lexer.l stuff-parser.y stuff-parser.h probs.c util.c util.h $(PUBDOM)
30 # stuff_LDADD = @LEXLIB@
31
32 -AM_CFLAGS = -funsigned-char -std=c99 -Wall -pedantic $(CFLAGSIEEE) -O3
33 +AM_CFLAGS = -funsigned-char -std=c99 -D_XOPEN_SOURCE=700 -Wall -pedantic $(CFLAGSIEEE) -O3
34 AM_YFLAGS = -d
35
36 CLEANFILES = mailcross mailtoe mailfoot