mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-04 17:00:11 -05:00
Don't '#include <windows.h>' on Cygwin
On Cygwin, don't '#include <windows.h>', so WIN32 isn't defined, so we don't end up trying to use various MSVC functions, which don't exist in our C runtime library. The whole point of the Cygwin C runtime library is to try to look like POSIX, so we always want the POSIX code in those pre-processor conditionals.
This commit is contained in:
parent
65d17836ab
commit
1bd9a87e2f
@ -3,6 +3,7 @@ AC_PREREQ(2.60)
|
|||||||
AC_INIT([osslsigncode], [2.4.0-dev], [Michal.Trojnara@stunnel.org])
|
AC_INIT([osslsigncode], [2.4.0-dev], [Michal.Trojnara@stunnel.org])
|
||||||
AC_CONFIG_AUX_DIR([.])
|
AC_CONFIG_AUX_DIR([.])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
AC_CANONICAL_HOST
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR([osslsigncode.c])
|
AC_CONFIG_SRCDIR([osslsigncode.c])
|
||||||
@ -69,11 +70,18 @@ AC_CHECK_HEADERS(
|
|||||||
)],
|
)],
|
||||||
[have_mmap=no]
|
[have_mmap=no]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
case "${host_os}" in
|
||||||
|
cygwin*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
AC_CHECK_HEADERS(
|
AC_CHECK_HEADERS(
|
||||||
[windows.h],
|
[windows.h],
|
||||||
[],
|
[],
|
||||||
[have_MapViewOfFile=no]
|
[have_MapViewOfFile=no]
|
||||||
)
|
)
|
||||||
|
esac
|
||||||
|
|
||||||
AS_IF([test "x$have_mmap$have_MapViewOfFile" = "xnono"],
|
AS_IF([test "x$have_mmap$have_MapViewOfFile" = "xnono"],
|
||||||
[AC_MSG_ERROR([Need file mapping function to buid.])])
|
[AC_MSG_ERROR([Need file mapping function to buid.])])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user