- xmllint.c: Dan Timis reported a portability problem
on Macs without mmap, fixed it.
Daniel
diff --git a/xmllint.c b/xmllint.c
index dfe1e69..b1f56f0 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -611,6 +611,7 @@
if ((timing) && (!repeat)) {
gettimeofday(&begin, NULL);
}
+#ifdef HAVE_SYS_MMAN_H
if (memory) {
xmlChar *result;
int len;
@@ -626,7 +627,9 @@
write(1, result, len);
xmlFree(result);
}
- } else if (compress)
+ } else
+#endif /* HAVE_SYS_MMAN_H */
+ if (compress)
xmlSaveFile("-", doc);
else if (encoding != NULL)
xmlSaveFileEnc("-", doc, encoding);