summaryrefslogtreecommitdiff
path: root/shells/ast-ksh/patches/patch-src_lib_libast_comp_tmpnam.c
blob: bd0b2df63f8c139b855649d8437cb156a2f14fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-src_lib_libast_comp_tmpnam.c,v 1.1 2017/02/19 20:18:16 maya Exp $

Workaround "storage size of 'buf' isn't known",
likely from #define P_tmpdir in ast_stdio.h.

just define it to be a sensible size.

--- src/lib/libast/comp/tmpnam.c.orig	2006-09-22 15:28:13.000000000 +0000
+++ src/lib/libast/comp/tmpnam.c
@@ -38,9 +38,8 @@
 #define extern	__EXPORT__
 #endif
 
-#ifndef L_tmpnam
+#undef L_tmpnam /* Defined as sizeof(P_tmpdir) but P_tmpdir is defined as empty */
 #define L_tmpnam	25
-#endif
 
 extern char*
 tmpnam(char* s)