From 3350609b988b8dae6b2179d2c8f5a6afc80af931 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 4 Sep 2021 13:41:07 -0700 Subject: [PATCH] ... --- Makefile.am | 4 ---- configure.ac | 7 +++++-- inc/log.h | 2 +- seederd | Bin 24808 -> 0 bytes src/log.c | 4 +++- src/setup.c | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) delete mode 100755 seederd diff --git a/Makefile.am b/Makefile.am index 3371098..aff6ed3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,3 @@ -AM_CPPFLAGS = \ - -I$(top_builddir)/inc/ \ - -I$(top_srcdir)/inc/ - bin_PROGRAMS = seederd seederd_SOURCES = \ diff --git a/configure.ac b/configure.ac index ddbe493..d1145bc 100644 --- a/configure.ac +++ b/configure.ac @@ -4,22 +4,25 @@ AC_INIT([seeder], [0.0.0]) # Store build files not in main directory AC_CONFIG_AUX_DIR([build-aux]) -AM_INIT_AUTOMAKE([foreign subdir-objects nostdinc -Wall -Werror]) +AM_INIT_AUTOMAKE([foreign subdir-objects -Wall -Werror]) AC_CONFIG_SRCDIR([src/main.c]) -AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_HEADERS([inc/config.h]) # Checks for programs. AC_PROG_CC # Checks for libraries. +AC_CHECK_LIB([pthread],[pthread_create]) # Checks for header files. AC_CHECK_HEADERS([stdlib.h]) # Checks for typedefs, structures, and compiler characteristics. +AC_TYPE_SIZE_T # Checks for library functions. +AC_FUNC_MALLOC AC_CONFIG_FILES([Makefile]) AC_OUTPUT diff --git a/inc/log.h b/inc/log.h index 63d16b3..8d3c19b 100644 --- a/inc/log.h +++ b/inc/log.h @@ -47,6 +47,6 @@ void log_entries_clean(); void log_flush(); void log_print(struct log_entry*); void log_message(enum log_level,FILE*,const char*,...); -void log_poll(); +void *log_poll(void*); #endif diff --git a/seederd b/seederd deleted file mode 100755 index c2136b197f1c9ee88fedf25130308b2f85f3b76f..0000000000000000000000000000000000000000 GIT binary patch literal 0 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