summaryrefslogtreecommitdiff
path: root/debian/patches/002-Make-Examples-Buildable-standalone.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/002-Make-Examples-Buildable-standalone.diff')
-rw-r--r--debian/patches/002-Make-Examples-Buildable-standalone.diff65
1 files changed, 25 insertions, 40 deletions
diff --git a/debian/patches/002-Make-Examples-Buildable-standalone.diff b/debian/patches/002-Make-Examples-Buildable-standalone.diff
index 7eea37d..180f9b9 100644
--- a/debian/patches/002-Make-Examples-Buildable-standalone.diff
+++ b/debian/patches/002-Make-Examples-Buildable-standalone.diff
@@ -10,8 +10,8 @@ Description: This patch makes the examples build standalone.
-#include <mowgli.h>
+#include <libmowgli-2/mowgli.h>
- int main(int argc, char *argv[])
- {
+ int
+ main(int argc, char *argv[])
--- a/src/examples/formattertest/Makefile
+++ b/src/examples/formattertest/Makefile
@@ -1,7 +1,7 @@
@@ -33,7 +33,7 @@ Description: This patch makes the examples build standalone.
+#include <libmowgli-2/mowgli.h>
#ifdef _WIN32
- #define strcasecmp _stricmp
+ # define strcasecmp _stricmp
--- a/src/examples/listsort/Makefile
+++ b/src/examples/listsort/Makefile
@@ -1,7 +1,7 @@
@@ -45,13 +45,6 @@ Description: This patch makes the examples build standalone.
CPPFLAGS += -I../../libmowgli
LIBS += -L../../libmowgli -lmowgli-2
---- a/src/examples/Makefile
-+++ b/src/examples/Makefile
-@@ -1,3 +1,3 @@
- SUBDIRS = echoserver vio-udplistener async_resolver formattertest helpertest libevent-bench linetest listsort memslice-bench patriciatest patriciatest2 randomtest timertest futuretest
-
--include ../../buildsys.mk
-+include buildsys.mk
--- a/src/examples/randomtest/Makefile
+++ b/src/examples/randomtest/Makefile
@@ -1,7 +1,7 @@
@@ -72,8 +65,8 @@ Description: This patch makes the examples build standalone.
-#include <mowgli.h>
+#include <libmowgli-2/mowgli.h>
- int main(int argc, char *argv[])
- {
+ int
+ main(int argc, char *argv[])
--- a/src/examples/async_resolver/async_resolver.c
+++ b/src/examples/async_resolver/async_resolver.c
@@ -1,6 +1,6 @@
@@ -117,28 +110,6 @@ Description: This patch makes the examples build standalone.
CPPFLAGS += -I../../libmowgli
LIBS += -L../../libmowgli -lmowgli-2
---- a/src/examples/futuretest/futuretest.c
-+++ b/src/examples/futuretest/futuretest.c
-@@ -23,7 +23,7 @@
-
- #include <string.h>
-
--#include <mowgli.h>
-+#include <libmowgli-2/mowgli.h>
-
- int main(int argc, char *argv[]) {
- char *text = "hello world";
---- a/src/examples/futuretest/Makefile
-+++ b/src/examples/futuretest/Makefile
-@@ -1,7 +1,7 @@
- PROG_NOINST = futuretest${PROG_SUFFIX}
- SRCS = futuretest.c
-
--include ../../../buildsys.mk
-+include ../buildsys.mk
-
- CPPFLAGS += -I../../libmowgli
- LIBS += -L../../libmowgli -lmowgli-2
--- a/src/examples/helpertest/helpertest.c
+++ b/src/examples/helpertest/helpertest.c
@@ -21,7 +21,7 @@
@@ -163,15 +134,15 @@ Description: This patch makes the examples build standalone.
LIBS += -L../../libmowgli -lmowgli-2
--- a/src/examples/libevent-bench/bench.c
+++ b/src/examples/libevent-bench/bench.c
-@@ -73,7 +73,7 @@
- } \
+@@ -76,7 +76,7 @@
+ } \
} while (0)
-#include <mowgli.h>
+#include <libmowgli-2/mowgli.h>
-
static int count, writes, fired;
+ static mowgli_eventloop_t *base_eventloop;
--- a/src/examples/libevent-bench/Makefile
+++ b/src/examples/libevent-bench/Makefile
@@ -1,7 +1,7 @@
@@ -218,9 +189,9 @@ Description: This patch makes the examples build standalone.
LIBS += -L../../libmowgli -lmowgli-2
--- a/src/examples/memslice-bench/memslice-bench.c
+++ b/src/examples/memslice-bench/memslice-bench.c
-@@ -28,7 +28,7 @@
- } \
- } while (0)
+@@ -30,7 +30,7 @@
+ } \
+ } while (0)
-#include <mowgli.h>
+#include <libmowgli-2/mowgli.h>
@@ -315,3 +286,17 @@ Description: This patch makes the examples build standalone.
#define BUFSIZE 2048
+--- a/src/examples/Makefile
++++ b/src/examples/Makefile
+@@ -1,2 +1,2 @@
+ SUBDIRS = echoserver vio-udplistener async_resolver formattertest helpertest jsontest libevent-bench linetest listsort memslice-bench patriciatest patriciatest2 randomtest timertest
+-include ../../buildsys.mk
++include buildsys.mk
+--- a/src/examples/jsontest/jsontest.c
++++ b/src/examples/jsontest/jsontest.c
+@@ -1,4 +1,4 @@
+-#include <mowgli.h>
++#include <libmowgli-2/mowgli.h>
+
+ void
+ out_string(mowgli_json_output_t *out, const char *str, size_t len)