summaryrefslogtreecommitdiff
path: root/sysutils/mrsync/patches/patch-ag
blob: a797eee519de27edc53e66d83bd8b398ba0f24e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ag,v 1.1.1.1 2011/12/02 05:40:00 agc Exp $

Define a function which is not there

--- file_operations.c	2011/11/30 21:09:26	1.1
+++ file_operations.c	2011/11/30 21:11:00
@@ -95,6 +95,12 @@
   return;
 }
 
+static char *
+tmpnam_r(char *s)
+{
+	return s ? tmpnam(s) : NULL;
+}
+
 void get_tmp_suffix()
 {
   /* this is called once in each multicatcher */