Patch for mingw32msvc
Martin Kahlert
martin.kahlert at infineon.com
Thu Jul 13 16:24:21 CEST 2000
Hi!
I append a small patch, i had to use to cross compile gnupg-1.0.2
from linux to mingw32 using the latest prerelease from http://www.mingw.org.
For building gpg i used
./configure --target=i586-pc-mingw32msvc
make
winioctl.h contains the define for IOCTL_DISK_PERFORMANCE
and the typedef for DISK_PERFORMANCE.
I don't know, if winioctl.h should be included by windows.h, but
it actually isn't included by anything.
Hope that helps this great project,
Martin.
Here it goes:
diff -rc gnupg-1.0.2/cipher/rndw32.c gnupg-1.0.2.new/cipher/rndw32.c
*** gnupg-1.0.2/cipher/rndw32.c Sun May 28 13:43:41 2000
--- gnupg-1.0.2.new/cipher/rndw32.c Thu Jul 13 15:15:35 2000
***************
*** 67,72 ****
--- 67,73 ----
#include <string.h>
#include <windows.h>
+ #include <winioctl.h>
#include "types.h"
***************
*** 306,312 ****
#define TH32CS_SNAPALL (1|2|4|8)
#define TH32CS_INHERIT 0x80000000
! #define IOCTL_DISK_PERFORMANCE 0x00070020
#define VER_PLATFORM_WIN32_WINDOWS 1
--- 307,316 ----
#define TH32CS_SNAPALL (1|2|4|8)
#define TH32CS_INHERIT 0x80000000
! #ifndef IOCTL_DISK_PERFORMANCE
! #define IOCTL_DISK_PERFORMANCE 0x00070020
! #endif
!
#define VER_PLATFORM_WIN32_WINDOWS 1
diff -rc gnupg-1.0.2/configure.in gnupg-1.0.2.new/configure.in
*** gnupg-1.0.2/configure.in Wed Jul 12 13:34:58 2000
--- gnupg-1.0.2.new/configure.in Thu Jul 13 15:15:20 2000
***************
*** 125,131 ****
dnl Setup some stuff depending on host/target.
dnl
case "${target}" in
! *-*-mingw32)
# special stuff for Windoze NT
# Do we need to set cross_compiling here or is it sufficient
# to rely on AC_PROG_CC which is called later?
--- 125,131 ----
dnl Setup some stuff depending on host/target.
dnl
case "${target}" in
! *-*-mingw32*)
# special stuff for Windoze NT
# Do we need to set cross_compiling here or is it sufficient
# to rely on AC_PROG_CC which is called later?
***************
*** 163,169 ****
try_gettext=yes
try_gdbm=yes
case "${target}" in
! *-*-mingw32)
# special stuff for Windoze NT
ac_cv_have_dev_random=no
AC_DEFINE(USE_ONLY_8DOT3)
--- 163,169 ----
try_gettext=yes
try_gdbm=yes
case "${target}" in
! *-*-mingw32*)
# special stuff for Windoze NT
ac_cv_have_dev_random=no
AC_DEFINE(USE_ONLY_8DOT3)
***************
*** 225,231 ****
case "${target}" in
! *-*-mingw32)
PRINTABLE_OS_NAME="MingW32"
;;
i?86-emx-os2 | i?86-*-os2*emx )
--- 225,231 ----
case "${target}" in
! *-*-mingw32*)
PRINTABLE_OS_NAME="MingW32"
;;
i?86-emx-os2 | i?86-*-os2*emx )
***************
*** 481,487 ****
static_random_module="rndlinux"
else
case "${target}" in
! *-*-mingw32)
static_random_module="rndw32"
AC_DEFINE(USE_STATIC_RNDW32)
;;
--- 481,487 ----
static_random_module="rndlinux"
else
case "${target}" in
! *-*-mingw32*)
static_random_module="rndw32"
AC_DEFINE(USE_STATIC_RNDW32)
;;
--
The early bird gets the worm. If you want something else for
breakfast, get up later.
More information about the Gnupg-devel
mailing list