various packages: revert patch changes with line ending errors

These four packages all have weird line ending issues - `git` can apply
and output them, but `patch` fails.
pull/1965/head
Tony Theodore 7 years ago
parent 1b1b9c9a9a
commit c01dc95ed1

@ -4,8 +4,8 @@ Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl> From: Mark Brand <mabrand@mabrand.nl>
Date: Sat, 18 Nov 2017 22:27:54 +1100 Date: Sat, 27 Oct 2012 22:57:27 +0200
Subject: [PATCH 1/4] include string.h for memset Subject: [PATCH] include string.h for memset
taken from https://sourceforge.net/tracker/?func=detail&aid=3581223&group_id=11504&atid=311504 taken from https://sourceforge.net/tracker/?func=detail&aid=3581223&group_id=11504&atid=311504
@ -27,8 +27,8 @@ index 1111111..2222222 100644
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tony Theodore <tonyt@logyst.com> From: Tony Theodore <tonyt@logyst.com>
Date: Sat, 18 Nov 2017 22:28:39 +1100 Date: Sat, 11 May 2013 15:15:39 +1000
Subject: [PATCH 2/4] mingw-w64 fixes Subject: [PATCH] mingw-w64 fixes
diff --git a/Source/FreeImage/PluginTIFF.cpp b/Source/FreeImage/PluginTIFF.cpp diff --git a/Source/FreeImage/PluginTIFF.cpp b/Source/FreeImage/PluginTIFF.cpp
@ -56,8 +56,8 @@ index 1111111..2222222 100644
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: fiesh <weiss@wsoptics.de> From: fiesh <weiss@wsoptics.de>
Date: Sat, 18 Nov 2017 22:29:10 +1100 Date: Tue, 22 Dec 2015 13:45:56 +0100
Subject: [PATCH 3/4] fix freeimage build Subject: [PATCH] fix freeimage build
Add the FREEIMAGE_LIB define in order to keep the build process from Add the FREEIMAGE_LIB define in order to keep the build process from
defining dllspec specifications. Remove -fPIC to fix a warning. defining dllspec specifications. Remove -fPIC to fix a warning.
@ -67,31 +67,31 @@ index 1111111..2222222 100644
--- a/Makefile.fip --- a/Makefile.fip
+++ b/Makefile.fip +++ b/Makefile.fip
@@ -17,7 +17,7 @@ MODULES = $(SRCS:.c=.o) @@ -17,7 +17,7 @@ MODULES = $(SRCS:.c=.o)
MODULES := $(MODULES:.cpp=.o) MODULES := $(MODULES:.cpp=.o)
CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS CFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS
CFLAGS += $(INCLUDE) CFLAGS += $(INCLUDE)
-CXXFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -CXXFLAGS ?= -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy
+CXXFLAGS ?= -O3 -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -DFREEIMAGE_LIB +CXXFLAGS ?= -O3 -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -DFREEIMAGE_LIB
CXXFLAGS += $(INCLUDE) CXXFLAGS += $(INCLUDE)
ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64) ifeq ($(shell sh -c 'uname -m 2>/dev/null || echo not'),x86_64)
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Boris Pek <tehnick-8@mail.ru> From: Boris Pek <tehnick-8@mail.ru>
Date: Sat, 18 Nov 2017 22:29:57 +1100 Date: Wed, 04 May 2016 18:43:16 +0300
Subject: [PATCH 4/4] fix build with GCC >= 6.x Subject: [PATCH] fix build with GCC >= 6.x
diff --git a/Makefile.mingw b/Makefile.mingw diff --git a/Makefile.mingw b/Makefile.mingw
index 1111111..2222222 100644 index 1111111..2222222 100644
--- a/Makefile.mingw --- a/Makefile.mingw
+++ b/Makefile.mingw +++ b/Makefile.mingw
@@ -67,7 +67,7 @@ MODULES := $(MODULES:.cpp=.o) @@ -67,7 +67,7 @@ MODULES := $(MODULES:.cpp=.o)
RESOURCE = $(RCFILE:.rc=.coff) RESOURCE = $(RCFILE:.rc=.coff)
CFLAGS ?= -O3 -fexceptions -DNDEBUG $(WIN32_CFLAGS) CFLAGS ?= -O3 -fexceptions -DNDEBUG $(WIN32_CFLAGS)
CFLAGS += $(INCLUDE) CFLAGS += $(INCLUDE)
-CXXFLAGS ?= -O3 -fexceptions -Wno-ctor-dtor-privacy -DNDEBUG $(WIN32_CXXFLAGS) -CXXFLAGS ?= -O3 -fexceptions -Wno-ctor-dtor-privacy -DNDEBUG $(WIN32_CXXFLAGS)
+CXXFLAGS ?= -O3 -fexceptions -Wno-ctor-dtor-privacy -Wno-narrowing -DNDEBUG $(WIN32_CXXFLAGS) +CXXFLAGS ?= -O3 -fexceptions -Wno-ctor-dtor-privacy -Wno-narrowing -DNDEBUG $(WIN32_CXXFLAGS)
CXXFLAGS += $(INCLUDE) CXXFLAGS += $(INCLUDE)
RCFLAGS ?= -DNDEBUG RCFLAGS ?= -DNDEBUG
LDFLAGS ?= -s -shared -static -Wl,-soname,$(SOLIBNAME) $(WIN32_LDFLAGS) LDFLAGS ?= -s -shared -static -Wl,-soname,$(SOLIBNAME) $(WIN32_LDFLAGS)

@ -2,71 +2,99 @@ This file is part of MXE. See LICENSE.md for licensing information.
Contains ad hoc patches for cross building. Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From 8f7239bcdd0f1c3879d548ddfb34c8befa70c9fb Mon Sep 17 00:00:00 2001
From: Tony Theodore <tonyt@logyst.com> From: MXE
Date: Sat, 18 Nov 2017 22:47:03 +1100 Date: Fri, 11 May 2012 00:50:32 +0200
Subject: [PATCH 1/1] allows use of ocaml tools for cross-compilation and use Subject: [PATCH 1/2] allows use of ocaml tools for cross-compilation
prefixed ocamldoc
diff --git a/Makefile b/Makefile diff --git a/Makefile b/Makefile
index 1111111..2222222 100644 index c978890..5c15ace 100644
--- a/Makefile --- a/Makefile
+++ b/Makefile +++ b/Makefile
@@ -1,8 +1,12 @@ @@ -1,8 +1,11 @@
# Makefile generated by OCamake # Makefile generated by OCamake
# http://tech.motion-twin.com # http://tech.motion-twin.com
.SUFFIXES : .ml .mli .cmo .cmx .cmi .mll .mly .SUFFIXES : .ml .mli .cmo .cmx .cmi .mll .mly
+OCAMLC=@target@-ocamlc +OCAMLC=@target@-ocamlc
+OCAMLOPT=@target@-ocamlopt +OCAMLOPT=@target@-ocamlopt
+OCAMLDOC=@target@-ocamldoc
-INSTALLDIR=`ocamlc -where`
-INSTALLDIR=`ocamlc -where` +
+ +INSTALLDIR=@installdir@
+INSTALLDIR=@installdir@ CFLAGS=
CFLAGS= LFLAGS= -a
LFLAGS= -a LIBS=
LIBS= @@ -19,16 +22,16 @@ doc:
@@ -16,19 +20,19 @@ install: all opt ocamldoc -sort -html -d doc xml.mli dtd.mli xmlParser.mli
doc: test.exe: xml-light.cma
mkdir doc - ocamlc xml-light.cma test.ml -o test.exe
- ocamldoc -sort -html -d doc xml.mli dtd.mli xmlParser.mli -
+ $(OCAMLDOC) -sort -html -d doc xml.mli dtd.mli xmlParser.mli + $(OCAMLC) xml-light.cma test.ml -o test.exe
+
test.exe: xml-light.cma test_opt.exe: xml-light.cmxa
- ocamlc xml-light.cma test.ml -o test.exe - ocamlopt xml-light.cmxa test.ml -o test_opt.exe
- + $(OCAMLOPT) xml-light.cmxa test.ml -o test_opt.exe
+ $(OCAMLC) xml-light.cma test.ml -o test.exe
+ xml-light.cma: xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo
test_opt.exe: xml-light.cmxa - ocamlc -o xml-light.cma $(LFLAGS) $(LIBS) xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo
- ocamlopt xml-light.cmxa test.ml -o test_opt.exe + $(OCAMLC) -o xml-light.cma $(LFLAGS) $(LIBS) xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo
+ $(OCAMLOPT) xml-light.cmxa test.ml -o test_opt.exe
xml-light.cmxa: xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
xml-light.cma: xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo - ocamlopt -o xml-light.cmxa $(LFLAGS) $(LIBS) xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
- ocamlc -o xml-light.cma $(LFLAGS) $(LIBS) xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo + $(OCAMLOPT) -o xml-light.cmxa $(LFLAGS) $(LIBS) xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
+ $(OCAMLC) -o xml-light.cma $(LFLAGS) $(LIBS) xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo
dtd.cmo: xml.cmi xml_lexer.cmi dtd.cmi
xml-light.cmxa: xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
- ocamlopt -o xml-light.cmxa $(LFLAGS) $(LIBS) xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx @@ -68,13 +71,13 @@ wclean:
+ $(OCAMLOPT) -o xml-light.cmxa $(LFLAGS) $(LIBS) xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
# SUFFIXES
dtd.cmo: xml.cmi xml_lexer.cmi dtd.cmi .ml.cmo:
- ocamlc $(CFLAGS) -c $<
@@ -68,13 +72,13 @@ wclean: + $(OCAMLC) $(CFLAGS) -c $<
# SUFFIXES .ml.cmx:
.ml.cmo: - ocamlopt $(CFLAGS) -c $<
- ocamlc $(CFLAGS) -c $< + $(OCAMLOPT) $(CFLAGS) -c $<
+ $(OCAMLC) $(CFLAGS) -c $<
.mli.cmi:
.ml.cmx: - ocamlc $(CFLAGS) $<
- ocamlopt $(CFLAGS) -c $< + $(OCAMLC) $(CFLAGS) $<
+ $(OCAMLOPT) $(CFLAGS) -c $<
.mll.ml:
.mli.cmi: ocamllex $<
- ocamlc $(CFLAGS) $< --
+ $(OCAMLC) $(CFLAGS) $< 1.7.9.5
.mll.ml:
ocamllex $< From 4ec44e9cba7be6abfe9c121b753f8d6bd5b3ee8b Mon Sep 17 00:00:00 2001
From: MXE
Date: Sun, 30 Sep 2012 21:38:52 +0200
Subject: [PATCH 2/2] use prefixed ocamldoc
diff --git a/Makefile b/Makefile
index 5c15ace..0e60588 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
.SUFFIXES : .ml .mli .cmo .cmx .cmi .mll .mly
OCAMLC=@target@-ocamlc
OCAMLOPT=@target@-ocamlopt
+OCAMLDOC=@target@-ocamldoc
INSTALLDIR=@installdir@
@@ -19,7 +20,7 @@ install: all opt
doc:
mkdir doc
- ocamldoc -sort -html -d doc xml.mli dtd.mli xmlParser.mli
+ $(OCAMLDOC) -sort -html -d doc xml.mli dtd.mli xmlParser.mli
test.exe: xml-light.cma
$(OCAMLC) xml-light.cma test.ml -o test.exe
--
1.7.9.5

@ -2,101 +2,113 @@ This file is part of MXE. See LICENSE.md for licensing information.
Contains ad hoc patches for cross building. Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From 0ee512abc5ac926ebe37ea50ecac9c314efd8f53 Mon Sep 17 00:00:00 2001
From: Tony Theodore <tonyt@logyst.com> From: MXE
Date: Sat, 18 Nov 2017 22:56:46 +1100 Date: Thu, 20 Oct 2011 21:05:36 +0200
Subject: [PATCH 1/4] add missing #include <cstdio> Subject: [PATCH 1/4] add missing #include <cstdio>
diff --git a/src/qwt3d_function.cpp b/src/qwt3d_function.cpp diff --git a/src/qwt3d_function.cpp b/src/qwt3d_function.cpp
index 1111111..2222222 100644 index 28d874e..72f93a9 100644
--- a/src/qwt3d_function.cpp --- a/src/qwt3d_function.cpp
+++ b/src/qwt3d_function.cpp +++ b/src/qwt3d_function.cpp
@@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
+#include <cstdio> +#include <cstdio>
#include "qwt3d_surfaceplot.h" #include "qwt3d_surfaceplot.h"
#include "qwt3d_function.h" #include "qwt3d_function.h"
--
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 1.7.7
From: Tony Theodore <tonyt@logyst.com>
Date: Sat, 18 Nov 2017 22:57:14 +1100
From 252126201db746fd5772e0ac201d7975aa705236 Mon Sep 17 00:00:00 2001
From: MXE
Date: Thu, 20 Oct 2011 21:06:42 +0200
Subject: [PATCH 2/4] add missing #include <GL/glu.h> Subject: [PATCH 2/4] add missing #include <GL/glu.h>
We use symbols defined in this header. We use symbols defined in this header.
Should not rely on Qt to include this file indirectly. Should not rely on Qt to include this file indirectly.
diff --git a/include/qwt3d_openglhelper.h b/include/qwt3d_openglhelper.h diff --git a/include/qwt3d_openglhelper.h b/include/qwt3d_openglhelper.h
index 1111111..2222222 100644 index e5499c2..48052ae 100644
--- a/include/qwt3d_openglhelper.h --- a/include/qwt3d_openglhelper.h
+++ b/include/qwt3d_openglhelper.h +++ b/include/qwt3d_openglhelper.h
@@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
+#include <GL/glu.h> +#include <GL/glu.h>
#ifndef __openglhelper_2003_06_06_15_49__ #ifndef __openglhelper_2003_06_06_15_49__
#define __openglhelper_2003_06_06_15_49__ #define __openglhelper_2003_06_06_15_49__
--
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 1.7.7
From: Tony Theodore <tonyt@logyst.com>
Date: Sat, 18 Nov 2017 22:57:46 +1100
From ac2860d954caeac6ce7701a0ee196e1533bc047e Mon Sep 17 00:00:00 2001
From: MXE
Date: Thu, 20 Oct 2011 21:22:24 +0200
Subject: [PATCH 3/4] configure project for MXE Subject: [PATCH 3/4] configure project for MXE
diff --git a/qwtplot3d.pro b/qwtplot3d.pro diff --git a/qwtplot3d.pro b/qwtplot3d.pro
index 1111111..2222222 100644 index d4fa0c1..94f92ee 100644
--- a/qwtplot3d.pro --- a/qwtplot3d.pro
+++ b/qwtplot3d.pro +++ b/qwtplot3d.pro
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
TARGET = qwtplot3d TARGET = qwtplot3d
TEMPLATE = lib TEMPLATE = lib
-CONFIG += qt warn_on opengl thread zlib debug -CONFIG += qt warn_on opengl thread zlib debug
+CONFIG += qt warn_on opengl thread zlib static release +CONFIG += qt warn_on opengl thread zlib static release
MOC_DIR = tmp MOC_DIR = tmp
OBJECTS_DIR = tmp OBJECTS_DIR = tmp
INCLUDEPATH = include INCLUDEPATH = include
@@ -12,13 +12,13 @@ DESTDIR = lib @@ -12,13 +12,13 @@ DESTDIR = lib
#DESTDIR = ../../../lib #DESTDIR = ../../../lib
QT += opengl QT += opengl
-win32:TEMPLATE = vclib -win32:TEMPLATE = vclib
-win32:CONFIG += dll exceptions -win32:CONFIG += dll exceptions
+#win32:TEMPLATE = vclib +#win32:TEMPLATE = vclib
+win32:CONFIG += exceptions +win32:CONFIG += exceptions
win32:dll:DEFINES += QT_DLL QWT3D_DLL QWT3D_MAKEDLL win32:dll:DEFINES += QT_DLL QWT3D_DLL QWT3D_MAKEDLL
win32:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_STL win32:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_STL
# Comment the next line, if you have zlib on your windows system # Comment the next line, if you have zlib on your windows system
-win32:CONFIG -= zlib -win32:CONFIG -= zlib
+#win32:CONFIG -= zlib +#win32:CONFIG -= zlib
linux-g++:TMAKE_CXXFLAGS += -fno-exceptions linux-g++:TMAKE_CXXFLAGS += -fno-exceptions
unix:VERSION = 0.2.6 unix:VERSION = 0.2.6
--
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 1.7.7
From: Tony Theodore <tonyt@logyst.com>
Date: Sat, 18 Nov 2017 22:58:05 +1100
From 6a316d1844a2634ebc4374e1e9d01502204d8c7e Mon Sep 17 00:00:00 2001
From: MXE
Date: Thu, 20 Oct 2011 21:47:18 +0200
Subject: [PATCH 4/4] fix building examples for MXE Subject: [PATCH 4/4] fix building examples for MXE
diff --git a/examples/common.pro b/examples/common.pro diff --git a/examples/common.pro b/examples/common.pro
index 1111111..2222222 100644 index 2b7fb83..a89066d 100644
--- a/examples/common.pro --- a/examples/common.pro
+++ b/examples/common.pro +++ b/examples/common.pro
@@ -11,12 +11,12 @@ unix:LIBS += -lqwtplot3d -L../../lib @@ -11,12 +11,12 @@ unix:LIBS += -lqwtplot3d -L../../lib
linux-g++:QMAKE_CXXFLAGS += -fno-exceptions linux-g++:QMAKE_CXXFLAGS += -fno-exceptions
win32{ win32{
- LIBS += ../../lib/qwtplot3d.lib - LIBS += ../../lib/qwtplot3d.lib
- TEMPLATE = vcapp - TEMPLATE = vcapp
- DEFINES += QT_DLL QWT3D_DLL - DEFINES += QT_DLL QWT3D_DLL
+ LIBS += -L../../lib -lqwtplot3d + LIBS += -L../../lib -lqwtplot3d
+# TEMPLATE = vcapp +# TEMPLATE = vcapp
+# DEFINES += QT_DLL QWT3D_DLL +# DEFINES += QT_DLL QWT3D_DLL
RC_FILE = ../icon.rc RC_FILE = ../icon.rc
contains (CONFIG, debug) { contains (CONFIG, debug) {
- QMAKE_LFLAGS += /NODEFAULTLIB:msvcrt - QMAKE_LFLAGS += /NODEFAULTLIB:msvcrt
+# QMAKE_LFLAGS += /NODEFAULTLIB:msvcrt +# QMAKE_LFLAGS += /NODEFAULTLIB:msvcrt
} }
} }
--
1.7.7

@ -2,55 +2,46 @@ This file is part of MXE. See LICENSE.md for licensing information.
Contains ad hoc patches for cross building. Contains ad hoc patches for cross building.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 diff -ur winpcap/packetNtx/Dll/Packet32-Int.h winpcap.new/packetNtx/Dll/Packet32-Int.h
From: Tony Theodore <tonyt@logyst.com> --- winpcap/packetNtx/Dll/Packet32-Int.h 2010-10-14 08:16:46.000000000 +1100
Date: Sat, 18 Nov 2017 21:48:44 +1100 +++ winpcap.new/packetNtx/Dll/Packet32-Int.h 2014-10-03 00:37:40.000000000 +1000
Subject: [PATCH 1/1] fixes
diff --git a/packetNtx/Dll/Packet32-Int.h b/packetNtx/Dll/Packet32-Int.h
index 1111111..2222222 100644
--- a/packetNtx/Dll/Packet32-Int.h
+++ b/packetNtx/Dll/Packet32-Int.h
@@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
#endif //HAVE_NPFIM_API #endif //HAVE_NPFIM_API
#ifdef __MINGW32__ #ifdef __MINGW32__
-#ifdef __MINGW64__ -#ifdef __MINGW64__
+#ifdef __MINGW64_VERSION_MAJOR +#ifdef __MINGW64_VERSION_MAJOR
#include <ntddndis.h> #include <ntddndis.h>
#else /*__MINGW64__*/ #else /*__MINGW64__*/
#include <ddk/ntddndis.h> #include <ddk/ntddndis.h>
diff --git a/wpcap/PRJ/GNUmakefile b/wpcap/PRJ/GNUmakefile diff -ur winpcap/wpcap/PRJ/GNUmakefile winpcap.new/wpcap/PRJ/GNUmakefile
index 1111111..2222222 100644 --- winpcap/wpcap/PRJ/GNUmakefile 2010-10-18 13:00:36.000000000 +1100
--- a/wpcap/PRJ/GNUmakefile +++ winpcap.new/wpcap/PRJ/GNUmakefile 2014-10-03 00:35:44.000000000 +1000
+++ b/wpcap/PRJ/GNUmakefile @@ -32,12 +32,12 @@
@@ -32,12 +32,12 @@ CFLAGS = -I ../libpcap -I ../libpcap/bpf -I ../libpcap/lbl \ -DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG_LONG=8 -DWPCAP -D'_U_=' \
-DSIZEOF_CHAR=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG_LONG=8 -DWPCAP -D'_U_=' \ -DHAVE_SNPRINTF -DHAVE_VSNPRINTF \
-DHAVE_SNPRINTF -DHAVE_VSNPRINTF \ -DSIZEOF_LONG_LONG=8 \
-DSIZEOF_LONG_LONG=8 \ - -DHAVE_REMOTE -DHAVE_AIRPCAP_API \
- -DHAVE_REMOTE -DHAVE_AIRPCAP_API \ + -DHAVE_REMOTE \
+ -DHAVE_REMOTE \ -DHAVE_TC_API \
-DHAVE_TC_API \ -DHAVE_ADDRINFO \
-DHAVE_ADDRINFO \ -DHAVE_LIMITS_H \
-DHAVE_LIMITS_H \ -DYY_NO_UNISTD_H \
-DYY_NO_UNISTD_H \ - -mno-cygwin -shared ${OPTFLAGS}
- -mno-cygwin -shared ${OPTFLAGS} + -shared ${OPTFLAGS}
+ -shared ${OPTFLAGS} LDFLAGS = -Wl,--out-implib,../lib/libwpcap.a
LDFLAGS = -Wl,--out-implib,../lib/libwpcap.a LIBS = -L ../../${PACKET_DIR}/Dll/Project -lpacket -lws2_32
LIBS = -L ../../${PACKET_DIR}/Dll/Project -lpacket -lws2_32 OBJS = ../libpcap/bpf/net/bpf_filter.o \
OBJS = ../libpcap/bpf/net/bpf_filter.o \ @@ -93,3 +93,6 @@
@@ -93,3 +93,6 @@ clean: ${FLEX} ${LFLAGS} -t $< >$*.c
${FLEX} ${LFLAGS} -t $< >$*.c .c.o:
.c.o: ${CC} ${CFLAGS} -o $*.o -c $<
${CC} ${CFLAGS} -o $*.o -c $< +libwpcap.a: ${OBJS}
+libwpcap.a: ${OBJS} + ${AR} rc $@ ${OBJS}
+ ${AR} rc $@ ${OBJS} + ${RANLIB} $@
+ ${RANLIB} $@ diff -ur winpcap/wpcap/libpcap/Win32/Src/gai_strerror.c winpcap.new/wpcap/libpcap/Win32/Src/gai_strerror.c
diff --git a/wpcap/libpcap/Win32/Src/gai_strerror.c b/wpcap/libpcap/Win32/Src/gai_strerror.c --- winpcap/wpcap/libpcap/Win32/Src/gai_strerror.c 2009-10-07 00:19:58.000000000 +1100
index 1111111..2222222 100644 +++ winpcap.new/wpcap/libpcap/Win32/Src/gai_strerror.c 2014-10-03 00:35:44.000000000 +1000
--- a/wpcap/libpcap/Win32/Src/gai_strerror.c
+++ b/wpcap/libpcap/Win32/Src/gai_strerror.c
@@ -1,83 +1 @@ @@ -1,83 +1 @@
-/* -/*
- * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. - * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -137,11 +128,10 @@ index 1111111..2222222 100644
-#endif /* gai_strerror */ -#endif /* gai_strerror */
\ No newline at end of file \ No newline at end of file
+/* already handled by <ws2tcpip.h> */ +/* already handled by <ws2tcpip.h> */
diff --git a/wpcap/libpcap/inet.c b/wpcap/libpcap/inet.c diff -ur winpcap/wpcap/libpcap/inet.c winpcap.new/wpcap/libpcap/inet.c
index 1111111..2222222 100644 --- winpcap/wpcap/libpcap/inet.c 2009-10-07 00:20:04.000000000 +1100
--- a/wpcap/libpcap/inet.c +++ winpcap.new/wpcap/libpcap/inet.c 2014-10-03 00:35:44.000000000 +1000
+++ b/wpcap/libpcap/inet.c @@ -804,7 +804,7 @@
@@ -804,7 +804,7 @@ pcap_lookupdev(errbuf)
while(NAdapts--) while(NAdapts--)
{ {
strcpy((char*)tUstr, tAstr); strcpy((char*)tUstr, tAstr);
@ -150,11 +140,10 @@ index 1111111..2222222 100644
tAstr += strlen(tAstr) + 1; tAstr += strlen(tAstr) + 1;
} }
diff --git a/wpcap/libpcap/pcap-win32.c b/wpcap/libpcap/pcap-win32.c diff -ur winpcap/wpcap/libpcap/pcap-win32.c winpcap.new/wpcap/libpcap/pcap-win32.c
index 1111111..2222222 100644 --- winpcap/wpcap/libpcap/pcap-win32.c 2013-02-28 17:22:00.000000000 +1100
--- a/wpcap/libpcap/pcap-win32.c +++ winpcap.new/wpcap/libpcap/pcap-win32.c 2014-10-03 00:37:02.000000000 +1000
+++ b/wpcap/libpcap/pcap-win32.c @@ -38,7 +38,7 @@
@@ -38,7 +38,7 @@ static const char rcsid[] _U_ =
#include <pcap-int.h> #include <pcap-int.h>
#include <Packet32.h> #include <Packet32.h>

Loading…
Cancel
Save