summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Hund <heikoh@users.sf.net>2011-07-26 09:01:55 +0200
committerHeiko Hund <heikoh@users.sf.net>2011-07-26 09:01:55 +0200
commit147d63d8125ee6e4ceb20ba72378cb6f7ac3100f (patch)
tree2396c9ab26d693caf5c3eeebea8505d2644ef1fe
parentfix write out of array bounds (diff)
downloadopenvpn-gui-147d63d8125ee6e4ceb20ba72378cb6f7ac3100f.tar.gz
make cross compilation on linux work
-rw-r--r--configure.ac6
-rw-r--r--main.c2
-rw-r--r--proxy.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 5a2c5b4..6dfeb87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,20 +29,20 @@ CFLAGS="$CFLAGS -mno-cygwin"
CPPFLAGS="$CPPFLAGS -mno-cygwin"
LDFLAGS="$LDFLAGS -mno-cygwin -mwindows"
-AC_PATH_PROG([WINDRES], [windres])
+AC_CHECK_TOOL([WINDRES], [windres])
AC_CHECK_HEADER([windows.h], ,
[AC_MSG_FAILURE([Target system must be Win32])])
AX_ASSERT_LIB([wininet], [wininet.h],
[DWORD s; InternetQueryOption(NULL, INTERNET_OPTION_PROXY, NULL, &s)],
- [Make sure you have a recent w32api installed.])
+ [Make sure you have a recent w32api installed.], [#include <windows.h>])
AX_ASSERT_LIB([comctl32], [prsht.h],
[PROPSHEETHEADER psh; PropertySheet(&psh)],
[Make sure you have a recent w32api installed.], [#include <windows.h>])
-AX_ASSERT_LIB([Ws2_32], [Winsock2.h],
+AX_ASSERT_LIB([ws2_32], [winsock2.h],
[WSADATA wsaData; WSAStartup(MAKEWORD(2, 2), &wsaData)],
[Make sure you have a recent w32api installed.], [#include <windows.h>])
diff --git a/main.c b/main.c
index 03ea0b7..280b9aa 100644
--- a/main.c
+++ b/main.c
@@ -23,7 +23,7 @@
#include <windows.h>
#include <shlwapi.h>
-#include <Pbt.h>
+#include <pbt.h>
#include "config.h"
#include "tray.h"
diff --git a/proxy.c b/proxy.c
index 8004bca..e34b702 100644
--- a/proxy.c
+++ b/proxy.c
@@ -25,7 +25,7 @@
#include <windows.h>
#include <prsht.h>
#include <tchar.h>
-#include <WinInet.h>
+#include <wininet.h>
#include "config.h"
#include "main.h"