gnu: Add kafs-client
[jackhill/guix/guix.git] / gnu / packages / patches / dbacl-include-locale.h.patch
CommitLineData
9a71213e
TGR
1From: Tobias Geerinckx-Rice <me@tobias.gr>
2Date: Sat, 11 Apr 2020 03:02:04 +0200
3Subject: [PATCH] gnu: dbacl: Include <locale.h> in dbacl.h.
4
5Copied 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
9Description: Add missing <locale.h> include in dbacl.h
10Author: Fabian Wolff <fabi.wolff@arcor.de>
11Bug-Debian: https://bugs.debian.org/916182
12Last-Update: 2019-08-25
13---
14This 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