From faa37905ce30a136b3dfd53f708d50c7afab5261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20C=C3=A9cile=20=28Le=5FVert=29?= Date: Tue, 24 Apr 2018 16:52:34 +0200 Subject: This patch makes the examples build standalone. Gbp-Pq: Name 002-Make-Examples-Buildable-standalone.diff --- src/examples/Makefile | 2 +- src/examples/async_resolver/Makefile | 2 +- src/examples/async_resolver/async_resolver.c | 2 +- src/examples/echoserver/Makefile | 2 +- src/examples/echoserver/echoserver.c | 2 +- src/examples/formattertest/Makefile | 2 +- src/examples/formattertest/formattertest.c | 2 +- src/examples/helpertest/Makefile | 2 +- src/examples/helpertest/helpertest.c | 2 +- src/examples/jsontest/jsontest.c | 2 +- src/examples/libevent-bench/Makefile | 2 +- src/examples/libevent-bench/bench.c | 2 +- src/examples/linetest/Makefile | 2 +- src/examples/linetest/linetest.c | 2 +- src/examples/listsort/Makefile | 2 +- src/examples/listsort/listsort.c | 2 +- src/examples/memslice-bench/Makefile | 2 +- src/examples/memslice-bench/memslice-bench.c | 2 +- src/examples/patriciatest/Makefile | 2 +- src/examples/patriciatest/patriciatest.c | 2 +- src/examples/patriciatest2/Makefile | 2 +- src/examples/patriciatest2/patriciatest2.c | 2 +- src/examples/randomtest/Makefile | 2 +- src/examples/randomtest/randomtest.c | 2 +- src/examples/timertest/Makefile | 2 +- src/examples/timertest/timertest.c | 2 +- src/examples/vio-udplistener/Makefile | 2 +- src/examples/vio-udplistener/vio-udplistener.c | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) (limited to 'src') diff --git a/src/examples/Makefile b/src/examples/Makefile index 4fb1edd..f16e38b 100644 --- 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 diff --git a/src/examples/async_resolver/Makefile b/src/examples/async_resolver/Makefile index 2c664bc..3766fc8 100644 --- a/src/examples/async_resolver/Makefile +++ b/src/examples/async_resolver/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = async_resolver${PROG_SUFFIX} SRCS = async_resolver.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/async_resolver/async_resolver.c b/src/examples/async_resolver/async_resolver.c index 8bd0b12..fc7e864 100644 --- a/src/examples/async_resolver/async_resolver.c +++ b/src/examples/async_resolver/async_resolver.c @@ -1,6 +1,6 @@ /* This code is in the public domain. */ -#include +#include typedef struct { diff --git a/src/examples/echoserver/Makefile b/src/examples/echoserver/Makefile index c0fa0f2..b811efe 100644 --- a/src/examples/echoserver/Makefile +++ b/src/examples/echoserver/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = echoserver${PROG_SUFFIX} SRCS = echoserver.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/echoserver/echoserver.c b/src/examples/echoserver/echoserver.c index 053b33b..1752fbc 100644 --- a/src/examples/echoserver/echoserver.c +++ b/src/examples/echoserver/echoserver.c @@ -21,7 +21,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include +#include mowgli_eventloop_t *base_eventloop; mowgli_eventloop_pollable_t *listener; diff --git a/src/examples/formattertest/Makefile b/src/examples/formattertest/Makefile index 63cf463..8a50cd4 100644 --- a/src/examples/formattertest/Makefile +++ b/src/examples/formattertest/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = formattertest${PROG_SUFFIX} SRCS = formattertest.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/formattertest/formattertest.c b/src/examples/formattertest/formattertest.c index f56b671..8a81e75 100644 --- a/src/examples/formattertest/formattertest.c +++ b/src/examples/formattertest/formattertest.c @@ -31,7 +31,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include +#include int main(int argc, char *argv[]) diff --git a/src/examples/helpertest/Makefile b/src/examples/helpertest/Makefile index 2a37715..7f28a04 100644 --- a/src/examples/helpertest/Makefile +++ b/src/examples/helpertest/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = helpertest${PROG_SUFFIX} SRCS = helpertest.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/helpertest/helpertest.c b/src/examples/helpertest/helpertest.c index fde9b15..3c7c8e4 100644 --- a/src/examples/helpertest/helpertest.c +++ b/src/examples/helpertest/helpertest.c @@ -21,7 +21,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include +#include int helper_count = 0; diff --git a/src/examples/jsontest/jsontest.c b/src/examples/jsontest/jsontest.c index a63dbc5..4237ed2 100644 --- a/src/examples/jsontest/jsontest.c +++ b/src/examples/jsontest/jsontest.c @@ -1,4 +1,4 @@ -#include +#include void out_string(mowgli_json_output_t *out, const char *str, size_t len) diff --git a/src/examples/libevent-bench/Makefile b/src/examples/libevent-bench/Makefile index c420102..4d357d6 100644 --- a/src/examples/libevent-bench/Makefile +++ b/src/examples/libevent-bench/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = bench${PROG_SUFFIX} SRCS = bench.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/libevent-bench/bench.c b/src/examples/libevent-bench/bench.c index 9940b45..e7ab493 100644 --- a/src/examples/libevent-bench/bench.c +++ b/src/examples/libevent-bench/bench.c @@ -76,7 +76,7 @@ } \ } while (0) -#include +#include static int count, writes, fired; static mowgli_eventloop_t *base_eventloop; diff --git a/src/examples/linetest/Makefile b/src/examples/linetest/Makefile index cb9b030..b7e7d1a 100644 --- a/src/examples/linetest/Makefile +++ b/src/examples/linetest/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = linetest${PROG_SUFFIX} SRCS = linetest.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/linetest/linetest.c b/src/examples/linetest/linetest.c index 3175b84..d790a0d 100644 --- a/src/examples/linetest/linetest.c +++ b/src/examples/linetest/linetest.c @@ -22,7 +22,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include +#include mowgli_eventloop_t *base_eventloop; char buf[512]; diff --git a/src/examples/listsort/Makefile b/src/examples/listsort/Makefile index b3e59b4..277abb2 100644 --- a/src/examples/listsort/Makefile +++ b/src/examples/listsort/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = listsort${PROG_SUFFIX} SRCS = listsort.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/listsort/listsort.c b/src/examples/listsort/listsort.c index 17768b5..0dd315f 100644 --- a/src/examples/listsort/listsort.c +++ b/src/examples/listsort/listsort.c @@ -31,7 +31,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include +#include #ifdef _WIN32 # define strcasecmp _stricmp diff --git a/src/examples/memslice-bench/Makefile b/src/examples/memslice-bench/Makefile index 8648d93..a5cf9e7 100644 --- a/src/examples/memslice-bench/Makefile +++ b/src/examples/memslice-bench/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = memslice-bench${PROG_SUFFIX} SRCS = memslice-bench.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/memslice-bench/memslice-bench.c b/src/examples/memslice-bench/memslice-bench.c index 3ed95fc..a5c3cf6 100644 --- a/src/examples/memslice-bench/memslice-bench.c +++ b/src/examples/memslice-bench/memslice-bench.c @@ -30,7 +30,7 @@ } \ } while (0) -#include +#include mowgli_allocation_policy_t *memslice; mowgli_allocation_policy_t *sysmalloc; diff --git a/src/examples/patriciatest/Makefile b/src/examples/patriciatest/Makefile index 5c454e2..1d7d2b0 100644 --- a/src/examples/patriciatest/Makefile +++ b/src/examples/patriciatest/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = patriciatest${PROG_SUFFIX} SRCS = patriciatest.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/patriciatest/patriciatest.c b/src/examples/patriciatest/patriciatest.c index 4dbb212..edfd935 100644 --- a/src/examples/patriciatest/patriciatest.c +++ b/src/examples/patriciatest/patriciatest.c @@ -31,7 +31,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include +#include int errors = 0; diff --git a/src/examples/patriciatest2/Makefile b/src/examples/patriciatest2/Makefile index de50339..763767e 100644 --- a/src/examples/patriciatest2/Makefile +++ b/src/examples/patriciatest2/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = patriciatest2${PROG_SUFFIX} SRCS = patriciatest2.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/patriciatest2/patriciatest2.c b/src/examples/patriciatest2/patriciatest2.c index 800c59e..aebb01f 100644 --- a/src/examples/patriciatest2/patriciatest2.c +++ b/src/examples/patriciatest2/patriciatest2.c @@ -31,7 +31,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include +#include #define TESTSIZE 10000 diff --git a/src/examples/randomtest/Makefile b/src/examples/randomtest/Makefile index 9b49184..98f6ed6 100644 --- a/src/examples/randomtest/Makefile +++ b/src/examples/randomtest/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = randomtest${PROG_SUFFIX} SRCS = randomtest.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/randomtest/randomtest.c b/src/examples/randomtest/randomtest.c index eb7ef05..959750c 100644 --- a/src/examples/randomtest/randomtest.c +++ b/src/examples/randomtest/randomtest.c @@ -31,7 +31,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ -#include +#include int main(int argc, char *argv[]) diff --git a/src/examples/timertest/Makefile b/src/examples/timertest/Makefile index 968f2d1..b291b63 100644 --- a/src/examples/timertest/Makefile +++ b/src/examples/timertest/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = timertest${PROG_SUFFIX} SRCS = timertest.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/timertest/timertest.c b/src/examples/timertest/timertest.c index f99410b..81acb58 100644 --- a/src/examples/timertest/timertest.c +++ b/src/examples/timertest/timertest.c @@ -21,7 +21,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#include +#include mowgli_eventloop_t *eventloop; diff --git a/src/examples/vio-udplistener/Makefile b/src/examples/vio-udplistener/Makefile index 1be3936..7e4ccc2 100644 --- a/src/examples/vio-udplistener/Makefile +++ b/src/examples/vio-udplistener/Makefile @@ -1,7 +1,7 @@ PROG_NOINST = vio-udplistener${PROG_SUFFIX} SRCS = vio-udplistener.c -include ../../../buildsys.mk +include ../buildsys.mk CPPFLAGS += -I../../libmowgli LIBS += -L../../libmowgli -lmowgli-2 diff --git a/src/examples/vio-udplistener/vio-udplistener.c b/src/examples/vio-udplistener/vio-udplistener.c index 1e1dda1..ca0a38f 100644 --- a/src/examples/vio-udplistener/vio-udplistener.c +++ b/src/examples/vio-udplistener/vio-udplistener.c @@ -3,7 +3,7 @@ * This example is public domain. */ -#include +#include #define BUFSIZE 2048 -- cgit v1.2.3