summaryrefslogtreecommitdiff
path: root/textproc/groff/patches/patch-src_libs_libgroff_tmpfile.cpp
blob: 150d6385e489340721784169fc2786462b85ce2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-src_libs_libgroff_tmpfile.cpp,v 1.2 2015/01/08 09:14:58 wiz Exp $

Fix SCO OpenServer 5.0.7/3.2 build.

--- src/libs/libgroff/tmpfile.cpp.orig	2009-01-09 14:25:52.000000000 +0000
+++ src/libs/libgroff/tmpfile.cpp
@@ -50,6 +50,14 @@ along with this program. If not, see <ht
 #define TMPFILE_PREFIX_SHORT ""
 #define TMPFILE_PREFIX_LONG "groff"
 
+/* SCO OpenServer 5.0.7/3.2's mkstemp cannot handle more than 26(a to z) files
+   for one PID. */
+#if defined(_SCO_DS)
+#define mkstemp pkgsrc_mkstemp
+
+#include "../../../mkstemp.c"
+#endif
+
 char *tmpfile_prefix;
 size_t tmpfile_prefix_len;
 int use_short_postfix = 0;