[Pkg-ocaml-maint-commits] [ocaml] 10/10: Enable mkstemp in yacc

Stéphane Glondu glondu at alioth.debian.org
Thu Nov 7 16:03:43 UTC 2013


This is an automated email from the git hooks/post-receive script.

glondu pushed a commit to branch experimental/master
in repository ocaml.

commit 4210ec5374cfa49f85e39de705aef4f538003780
Author: Stephane Glondu <steph at glondu.net>
Date:   Thu Nov 7 16:09:38 2013 +0100

    Enable mkstemp in yacc
---
 debian/patches/0011-Enable-mkstemp-in-yacc.patch |   26 ++++++++++++++++++++++
 debian/patches/series                            |    1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/0011-Enable-mkstemp-in-yacc.patch b/debian/patches/0011-Enable-mkstemp-in-yacc.patch
new file mode 100644
index 0000000..c2919e7
--- /dev/null
+++ b/debian/patches/0011-Enable-mkstemp-in-yacc.patch
@@ -0,0 +1,26 @@
+From: Stephane Glondu <steph at glondu.net>
+Date: Thu, 7 Nov 2013 16:06:57 +0100
+Subject: Enable mkstemp in yacc
+
+Use the feature test macro found in the mkstemp(3) manpage.
+---
+ yacc/main.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/yacc/main.c b/yacc/main.c
+index f6cac60..66b63ec 100644
+--- a/yacc/main.c
++++ b/yacc/main.c
+@@ -57,6 +57,11 @@ char *verbose_file_name;
+ #define HAVE_MKSTEMP
+ #endif
+ 
++#if _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500 \
++  || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED || _POSIX_C_SOURCE >= 200112L
++#define HAVE_MKSTEMP
++#endif
++
+ #ifdef HAVE_MKSTEMP
+ int action_fd = -1, entry_fd = -1, text_fd = -1, union_fd = -1;
+ #endif
+-- 
diff --git a/debian/patches/series b/debian/patches/series
index ac2d26f..a47d64c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@
 0008-Embed-bytecode-in-C-object-when-using-custom.patch
 0009-Fix-typos-and-other-wording-issues.patch
 0010-Add-const-qualifiers-in-Tcl-Tk-bindings.patch
+0011-Enable-mkstemp-in-yacc.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/ocaml.git



More information about the Pkg-ocaml-maint-commits mailing list