diff --git a/xmllint.c b/xmllint.c index 7e79070d..9d46ac55 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