$OpenBSD: patch-source_blender_blenkernel_intern_packedFile_c,v 1.3 2009/10/25 22:41:25 steven Exp $
--- source/blender/blenkernel/intern/packedFile.c.orig	Tue Sep  1 17:21:17 2009
+++ source/blender/blenkernel/intern/packedFile.c	Sat Oct 10 19:25:00 2009
@@ -303,7 +303,7 @@ int writePackedFile(char * filename, PackedFile *pf, i
 	// make sure the path to the file exists...
 	BLI_make_existing_file(name);
 	
-	file = open(name, O_BINARY + O_WRONLY + O_CREAT + O_TRUNC, 0666);
+	file = open(name, O_WRONLY|O_CREAT|O_TRUNC, 0666);
 	if (file >= 0) {
 		if (write(file, pf->data, pf->size) != pf->size) {
 			if(guimode) error("Error writing file: %s", name);
