# HG changeset patch # User J. Ali Harlow # Date 1314301268 -3600 # Node ID 579831f324c72818382f1eeacfe54b5b9dace0e1 # Parent ba16f91d585cdfce99b6072ebf01f0122097ab22 Fix checks & usage for softpub.h and mscat.h diff -r ba16f91d585c -r 579831f324c7 configure.ac --- a/configure.ac Thu Aug 25 20:22:44 2011 +0100 +++ b/configure.ac Thu Aug 25 20:41:08 2011 +0100 @@ -45,7 +45,16 @@ # Checks for header files. ################################################## AC_HEADER_STDC -AC_CHECK_HEADERS_ONCE([softpub.h mscat.h]) +case $host_os in + mingw*) + AC_CHECK_HEADERS([softpub.h],[],[], + [#include + ]) + AC_CHECK_HEADERS([mscat.h],[],[], + [#include + ]) + ;; +esac ################################################## # Checks for typedefs, structures, and compiler characteristics. diff -r ba16f91d585c -r 579831f324c7 whelk/catalog.c --- a/whelk/catalog.c Thu Aug 25 20:22:44 2011 +0100 +++ b/whelk/catalog.c Thu Aug 25 20:41:08 2011 +0100 @@ -9,7 +9,7 @@ typedef HANDLE HCATINFO; #endif #if HAVE_SOFTPUB_H -#include +#include #endif #include #include