$OpenBSD: patch-source_blender_blenkernel_intern_packedFile_c,v 1.2 2007/05/25 12:19:14 steven Exp $
--- source/blender/blenkernel/intern/packedFile.c.orig	Thu Dec 28 00:01:40 2006
+++ source/blender/blenkernel/intern/packedFile.c	Sun May 20 14:53:09 2007
@@ -306,7 +306,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);
