summaryrefslogtreecommitdiff
path: root/lang/guile2/files/patch-libguile_filesys.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/guile2/files/patch-libguile_filesys.c')
-rw-r--r--lang/guile2/files/patch-libguile_filesys.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/guile2/files/patch-libguile_filesys.c b/lang/guile2/files/patch-libguile_filesys.c
new file mode 100644
index 000000000000..135030ac6257
--- /dev/null
+++ b/lang/guile2/files/patch-libguile_filesys.c
@@ -0,0 +1,12 @@
+--- libguile/filesys.c.orig 2017-02-06 04:37:29 UTC
++++ libguile/filesys.c
+@@ -1486,6 +1486,9 @@ SCM_DEFINE (scm_i_mkstemp, "mkstemp!", 1
+ mode_bits = scm_i_mode_bits (mode);
+ }
+
++#ifdef __FreeBSD__
++ open_flags &= O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_CLOEXEC;
++#endif
+ SCM_SYSCALL (rv = mkostemp (c_tmpl, open_flags));
+ if (rv == -1)
+ SCM_SYSERROR;