$OpenBSD: patch-source_blender_blenloader_intern_writefile_c,v 1.7 2012/05/14 18:31:43 pascal Exp $
--- source/blender/blenloader/intern/writefile.c.orig	Thu May 10 16:51:00 2012
+++ source/blender/blenloader/intern/writefile.c	Mon May 14 17:42:06 2012
@@ -2898,7 +2898,7 @@ int BLO_write_file(Main *mainvar, const char *filepath
 	/* open temporary file, so we preserve the original in case we crash */
 	BLI_snprintf(tempname, sizeof(tempname), "%s@", filepath);
 
-	file = BLI_open(tempname,O_BINARY+O_WRONLY+O_CREAT+O_TRUNC, 0666);
+	file = BLI_open(tempname,O_BINARY|O_WRONLY|O_CREAT|O_TRUNC, 0666);
 	if (file == -1) {
 		BKE_reportf(reports, RPT_ERROR, "Can't open file %s for writing: %s.", tempname, strerror(errno));
 		return 0;
