Have you ever wondered where following message comes from
under Linux:

** WARNING **: I won't mmap that file, using a slower method

The reason is simple, HAVE_MMAP is  not defined because autoconfed config.h
is not included.

This patch could probably break other platforms which do not 
use autoconf and have no config.h.

Index: ms-ole.c
===================================================================
RCS file: /cvsroot/wv/libole2/ms-ole.c,v
retrieving revision 1.35
diff -u -r1.35 ms-ole.c
--- ms-ole.c    24 Mar 2002 10:11:24 -0000      1.35
+++ ms-ole.c    25 Mar 2002 21:46:19 -0000
@@ -11,6 +11,7 @@
  **/
 
 /* #include <libole2-config.h> */
+#include <config.h>
 #include <libole2/ms-ole.h>
 
 /* BSDs require unistd.h before including stat.h */

Reply via email to