parent
41592edbd0
commit
2dd882c605
@ -1,36 +1,78 @@
|
||||
This file is part of MXE.
|
||||
See index.html for further information.
|
||||
|
||||
From d221ed3c7576a3456a8f5623246b46d355a4db83 Mon Sep 17 00:00:00 2001
|
||||
From: Mark Brand <mabrand@mabrand.nl>
|
||||
Date: Sun, 9 Feb 2014 02:48:38 +0100
|
||||
Subject: [PATCH] winsock2.h must precede windows.h
|
||||
From 1e244993f497ca7167361dfb29a2fe43232a7661 Mon Sep 17 00:00:00 2001
|
||||
From: Timothy Gu <timothygu99@gmail.com>
|
||||
Date: Thu, 13 Nov 2014 00:17:19 -0500
|
||||
Subject: [PATCH] Include windows.h after winsock2.h
|
||||
|
||||
MinGW 4 is particular about this.
|
||||
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
|
||||
---
|
||||
include/apr.h.in | 2 +-
|
||||
include/apr.hw | 2 +-
|
||||
include/apr.hwc | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/include/apr.h.in b/include/apr.h.in
|
||||
index 9f1fb6f..f1741c1 100644
|
||||
index 0ad7a91..0d70142 100644
|
||||
--- a/include/apr.h.in
|
||||
+++ b/include/apr.h.in
|
||||
@@ -115,14 +115,14 @@
|
||||
* or the extern "C" namespace
|
||||
*/
|
||||
@@ -142,7 +142,6 @@
|
||||
#define NOIME
|
||||
#endif
|
||||
|
||||
-#if APR_HAVE_WINDOWS_H
|
||||
-#include <windows.h>
|
||||
-#endif
|
||||
-
|
||||
#if APR_HAVE_WINSOCK2_H
|
||||
#include <winsock2.h>
|
||||
/*
|
||||
* Add a _very_few_ declarations missing from the restricted set of headers
|
||||
* (If this list becomes extensive, re-enable the required headers above!)
|
||||
@@ -156,6 +155,7 @@
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
+#include <windows.h>
|
||||
|
||||
+#if APR_HAVE_WINDOWS_H
|
||||
#endif /* ndef _WINDOWS_ */
|
||||
#endif /* APR_HAVE_WINDOWS_H */
|
||||
diff --git a/include/apr.hw b/include/apr.hw
|
||||
index a75bc60..caa933c 100644
|
||||
--- a/include/apr.hw
|
||||
+++ b/include/apr.hw
|
||||
@@ -95,7 +95,6 @@
|
||||
#ifndef NOIME
|
||||
#define NOIME
|
||||
#endif
|
||||
-#include <windows.h>
|
||||
/*
|
||||
* Add a _very_few_ declarations missing from the restricted set of headers
|
||||
* (If this list becomes extensive, re-enable the required headers above!)
|
||||
@@ -109,6 +108,7 @@
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
+#include <windows.h>
|
||||
+#endif
|
||||
+
|
||||
#if APR_HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif /* !_WINDOWS_ */
|
||||
|
||||
/**
|
||||
diff --git a/include/apr.hwc b/include/apr.hwc
|
||||
index 0579962..b171d48 100644
|
||||
--- a/include/apr.hwc
|
||||
+++ b/include/apr.hwc
|
||||
@@ -92,7 +92,6 @@
|
||||
#ifndef NOIME
|
||||
#define NOIME
|
||||
#endif
|
||||
-#include <windows.h>
|
||||
/*
|
||||
* Add a _very_few_ declarations missing from the restricted set of headers
|
||||
* (If this list becomes extensive, re-enable the required headers above!)
|
||||
@@ -106,6 +105,7 @@
|
||||
#else
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
+#include <windows.h>
|
||||
#endif /* !_WINDOWS_ */
|
||||
|
||||
/**
|
||||
--
|
||||
1.8.4.5
|
||||
1.9.1
|
||||
|
||||
|
@ -0,0 +1,36 @@
|
||||
This file is part of MXE.
|
||||
See index.html for further information.
|
||||
|
||||
From: "Jon Schewe (BBN) <jschewe@bbn.com>"
|
||||
Taken from https://issues.apache.org/bugzilla/attachment.cgi?id=31800.
|
||||
|
||||
--- a/include/arch/win32/apr_private.h.orig 2014-07-03 14:34:47 -0500
|
||||
+++ b/include/arch/win32/apr_private.h 2014-07-03 14:35:51 -0500
|
||||
@@ -45,13 +45,9 @@
|
||||
*/
|
||||
#ifndef _WIN32_WCE
|
||||
#define HAVE_ACLAPI 1
|
||||
-#ifdef __wtypes_h__
|
||||
+#define COM_NO_WINDOWS_H
|
||||
#include <accctrl.h>
|
||||
-#else
|
||||
-#define __wtypes_h__
|
||||
-#include <accctrl.h>
|
||||
-#undef __wtypes_h__
|
||||
-#endif
|
||||
+#undef COM_NO_WINDOWS_H
|
||||
#else
|
||||
#define HAVE_ACLAPI 0
|
||||
#endif
|
||||
--- a/file_io/win32/filestat.c.orig 2014-07-03 14:42:41 -0500
|
||||
+++ b/file_io/win32/filestat.c 2014-07-03 14:43:09 -0500
|
||||
@@ -15,7 +15,9 @@
|
||||
*/
|
||||
|
||||
#include "apr.h"
|
||||
+#define COM_NO_WINDOWS_H
|
||||
#include <aclapi.h>
|
||||
+#undef COM_NO_WINDOWS_H
|
||||
#include "apr_private.h"
|
||||
#include "apr_arch_file_io.h"
|
||||
#include "apr_file_io.h"
|
@ -0,0 +1,32 @@
|
||||
This file is part of MXE.
|
||||
See index.html for further information.
|
||||
|
||||
From 72ceb6351c8519ed48b21233246fc87f5dc8ee18 Mon Sep 17 00:00:00 2001
|
||||
From: Timothy Gu <timothygu99@gmail.com>
|
||||
Date: Thu, 13 Nov 2014 01:10:29 -0500
|
||||
Subject: [PATCH] Make it possible to use another tools/gen_test_char
|
||||
|
||||
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
|
||||
---
|
||||
Makefile.in | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 6f99733..db08a1f 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -137,9 +137,10 @@ tools/gen_test_char.lo: make_tools_dir
|
||||
tools/gen_test_char@EXEEXT@: $(OBJECTS_gen_test_char)
|
||||
$(LINK_PROG) $(OBJECTS_gen_test_char) $(ALL_LIBS)
|
||||
|
||||
+GEN_TEST_CHAR ?= tools/gen_test_char@EXEEXT@
|
||||
include/private/apr_escape_test_char.h: tools/gen_test_char@EXEEXT@
|
||||
$(APR_MKDIR) include/private
|
||||
- tools/gen_test_char@EXEEXT@ > $@
|
||||
+ $(GEN_TEST_CHAR) > $@
|
||||
|
||||
LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LT_LDFLAGS) \
|
||||
@LT_NO_INSTALL@ $(ALL_LDFLAGS) -o $@
|
||||
--
|
||||
1.9.1
|
||||
|
Loading…
Reference in new issue