summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2014-10-02 15:23:05 (GMT)
committerTony Theodore <tonyt@logyst.com>2014-10-02 15:23:05 (GMT)
commitb4688e46019e222978bc18cf16763e1816d5b763 (patch)
tree1e8a78ff3d633b19ca0e7b21c00cdad758956ad1 /src
parent43a4544a29f160cef8a4394d86df93566ba8a0a2 (diff)
downloadmxe-b4688e46019e222978bc18cf16763e1816d5b763.zip
mxe-b4688e46019e222978bc18cf16763e1816d5b763.tar.gz
mxe-b4688e46019e222978bc18cf16763e1816d5b763.tar.bz2
libdnet: enable *-w64-* targets
Diffstat (limited to 'src')
-rw-r--r--src/libdnet-1-fixes.patch2
-rw-r--r--src/libdnet.mk5
2 files changed, 2 insertions, 5 deletions
diff --git a/src/libdnet-1-fixes.patch b/src/libdnet-1-fixes.patch
index 0831049..55fb4c5 100644
--- a/src/libdnet-1-fixes.patch
+++ b/src/libdnet-1-fixes.patch
@@ -15,7 +15,7 @@ index c12c7b2..9e8bdd2 100644
typedef u_short uint16_t;
typedef u_int uint32_t;
# ifndef __CYGWIN__
-+# ifndef _SSIZE_T_
++# if !defined( _SSIZE_T_) && !defined(__MINGW64_VERSION_MAJOR)
typedef long ssize_t;
# endif
+# endif
diff --git a/src/libdnet.mk b/src/libdnet.mk
index af2bef1..110a5d3 100644
--- a/src/libdnet.mk
+++ b/src/libdnet.mk
@@ -25,7 +25,7 @@ define $(PKG)_BUILD
$(SED) -i 's,packet\.lib,libpacket.a,' '$(1)/configure'
$(SED) -i 's,-lpacket,-lpacket -lws2_32,g' '$(1)/configure'
$(SED) -i 's,/usr/include,$(PREFIX)/$(TARGET)/include,g' '$(1)/configure'
- $(SED) -i 's,#include <Ntddndis.h>,#include <ddk/ntddndis.h>,' '$(1)/src/eth-win32.c'
+ $(SED) -i 's,#include <Ntddndis.h>,#include <ntddndis.h>,' '$(1)/src/eth-win32.c'
$(SED) -i 's,-mno-cygwin,,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
@@ -34,7 +34,4 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef
-$(PKG)_BUILD_x86_64-w64-mingw32 =
-$(PKG)_BUILD_i686-w64-mingw32 =
-
$(PKG)_BUILD_SHARED =