- xmllint.c: Dan Timis reported a portability problem
  on Macs without mmap, fixed it.
Daniel
diff --git a/ChangeLog b/ChangeLog
index c578638..3aa1a2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Apr  4 02:07:53 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
+
+	* xmllint.c: Dan Timis reported a portability problem
+	  on Macs without mmap, fixed it.
+
 Tue Apr  3 20:20:51 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
 
 	* testXPath.c : added a --tree option allowing to display the
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);