blob: 78a7b07deedcba76fc9e5806d0a230a9ca47e1c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- tempstream/tempstream1.cc.orig 2012-05-07 16:35:29.000000000 +0200
+++ tempstream/tempstream1.cc 2012-12-02 00:49:06.000000000 +0100
@@ -7,7 +7,11 @@
strcpy(buf + base.length(), "XXXXXX");
base.copy(buf, string::npos);
+#ifdef __FreeBSD__
+ int fd = mkstemp(buf);
+#else
int fd = mkostemp(buf, O_RDWR);
+#endif
if (fd == -1)
throw Errno("TempStream");
|