From 492322211c6a432d000bc18fe57a659e910a05e5 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Wed, 20 Jul 2016 14:21:24 +0200 Subject: Adjust autoconf/make config for using gnulib + use config.h --- mcastseed/src/Makefile.am | 1 + mcastseed/src/dgrambuf.c | 4 +++- mcastseed/src/mcastleech.c | 1 + mcastseed/src/mcastseed.c | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) (limited to 'mcastseed/src') diff --git a/mcastseed/src/Makefile.am b/mcastseed/src/Makefile.am index 7af38c9..1e3351c 100644 --- a/mcastseed/src/Makefile.am +++ b/mcastseed/src/Makefile.am @@ -1,5 +1,6 @@ ## Process this file with automake to produce Makefile.in +AM_CPPFLAGS = -I ../lib AM_CFLAGS =\ -Wall \ -Wextra \ diff --git a/mcastseed/src/dgrambuf.c b/mcastseed/src/dgrambuf.c index e4c5e09..4863bb7 100644 --- a/mcastseed/src/dgrambuf.c +++ b/mcastseed/src/dgrambuf.c @@ -4,9 +4,10 @@ * Copyright 2016 by Ludovic Pouzenc */ #define _GNU_SOURCE /* See feature_test_macros(7) */ - #include "dgrambuf.h" +#include "config.h" + #include /* recvmmsg() _GNU_SOURCE */ #include /* calloc(), free(), qsort() */ #include /* perror() */ @@ -17,6 +18,7 @@ #include /* sigaction() */ #include /* alarm() */ #include /* SSIZE_MAX */ +#include "gl_rbtree_oset.h" /* Red-Black Tree Ordered Set, gnulib-tool --import rbtree-oset */ struct uint_pair { unsigned int index; diff --git a/mcastseed/src/mcastleech.c b/mcastseed/src/mcastleech.c index bbdcf20..9bba7aa 100644 --- a/mcastseed/src/mcastleech.c +++ b/mcastseed/src/mcastleech.c @@ -7,6 +7,7 @@ * http://cboard.cprogramming.com/showthread.php?t=67469 */ #define _GNU_SOURCE /* See feature_test_macros(7) */ +#include "config.h" #include /* close() */ #include /* fprintf(), stderr */ diff --git a/mcastseed/src/mcastseed.c b/mcastseed/src/mcastseed.c index 04d5575..3e8b50c 100644 --- a/mcastseed/src/mcastseed.c +++ b/mcastseed/src/mcastseed.c @@ -7,6 +7,7 @@ * http://cboard.cprogramming.com/showthread.php?t=67469 */ #define _GNU_SOURCE /* See feature_test_macros(7) */ +#include "config.h" #include /* close() */ #include /* fprintf(), stderr */ -- cgit v1.2.3