aboutsummaryrefslogtreecommitdiff
path: root/textproc/xerces-c27/files/patch-src-xercesc-util-Platforms-FreeBSD-FreeBSDPlatformUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/xerces-c27/files/patch-src-xercesc-util-Platforms-FreeBSD-FreeBSDPlatformUtils.cpp')
-rw-r--r--textproc/xerces-c27/files/patch-src-xercesc-util-Platforms-FreeBSD-FreeBSDPlatformUtils.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/textproc/xerces-c27/files/patch-src-xercesc-util-Platforms-FreeBSD-FreeBSDPlatformUtils.cpp b/textproc/xerces-c27/files/patch-src-xercesc-util-Platforms-FreeBSD-FreeBSDPlatformUtils.cpp
new file mode 100644
index 000000000000..9b0f6629c8af
--- /dev/null
+++ b/textproc/xerces-c27/files/patch-src-xercesc-util-Platforms-FreeBSD-FreeBSDPlatformUtils.cpp
@@ -0,0 +1,20 @@
+--- src/xercesc/util/Platforms/FreeBSD/FreeBSDPlatformUtils.cpp Wed Nov 12 20:32:33 2003
++++ src/xercesc/util/Platforms/FreeBSD/FreeBSDPlatformUtils.cpp Wed Nov 12 20:31:16 2003
+@@ -298,7 +298,7 @@
+ XMLExcepts::CPtr_PointerIsZero);
+ const char* tmpFileName = XMLString::transcode(fileName, fgMemoryManager);
+ ArrayJanitor<char> janText((char*)tmpFileName, fgMemoryManager);
+- FileHandle retVal = (FileHandle)fopen( tmpFileName , "r+" );
++ FileHandle retVal = (FileHandle)fopen( tmpFileName , "r" );
+ return retVal;
+ }
+
+@@ -307,7 +307,7 @@
+ if (fileName == NULL)
+ ThrowXML(XMLPlatformUtilsException,
+ XMLExcepts::CPtr_PointerIsZero);
+- FileHandle retVal = (FileHandle)fopen( fileName , "r+" );
++ FileHandle retVal = (FileHandle)fopen( fileName , "r" );
+ return retVal;
+ }
+