[libxml2] Portability patch for fopen on OS/400
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Portability patch for fopen on OS/400
- Date: Thu, 12 Dec 2013 07:51:43 +0000 (UTC)
commit 1c43f43ce36c09ff9c0524ca422ed9f5bf435502
Author: Patrick Monnerat <Patrick Monnerat datasphere ch>
Date: Thu Dec 12 15:12:53 2013 +0800
Portability patch for fopen on OS/400
xmllint.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/xmllint.c b/xmllint.c
index 7e79070..9d46ac5 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -2194,6 +2194,8 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
f = fopen(filename, "rb");
+#elif defined(__OS400__)
+ f = fopen(filename, "rb");
#else
f = fopen(filename, "r");
#endif
@@ -2260,6 +2262,8 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
} else {
#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
f = fopen(filename, "rb");
+#elif defined(__OS400__)
+ f = fopen(filename, "rb");
#else
f = fopen(filename, "r");
#endif
@@ -2301,6 +2305,8 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
f = fopen(filename, "rb");
+#elif defined(__OS400__)
+ f = fopen(filename, "rb");
#else
f = fopen(filename, "r");
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]