ports/devel/libbobcat/files/patch-tempstream-tempstream1.cc
Gabor Pali 66e14f2a24 - Update to 3.11.01
- Trim Makefile header
- Use USE_XORG to depend on libX11

Feature safe:	yes
2012-12-04 09:20:38 +00:00

14 lines
392 B
C++

--- 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");