libdnet: enable *-w64-* targets

This commit is contained in:
Tony Theodore 2014-10-03 01:23:05 +10:00
parent 43a4544a29
commit b4688e4601
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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 =