ports/devel/libbobcat/files/patch-tempstream-tempstream1.cc
Muhammad Moinur Rahman 6e47a493b5 devel/libbobcat: Update version 3.21.01=>3.25.01
- Fix patch files to reflect 'make makepatch'
2015-06-07 11:32:57 +00:00

14 lines
441 B
C++

--- tempstream/tempstream1.cc.orig 2013-10-01 16:50:32 UTC
+++ tempstream/tempstream1.cc
@@ -7,7 +7,11 @@ TempStream::TempStream(string const &bas
strcpy(buf + base.length(), "XXXXXX");
base.copy(buf, string::npos);
+#if defined(__FreeBSD__) || defined(__DragonFly__)
+ int fd = mkstemp(buf);
+#else
int fd = mkostemp(buf, O_RDWR);
+#endif
if (fd == -1)
throw Exception() << "TempStream: " << errnodescr;