From 56e0782ad7c9b4ffba57b52e631b66e2107b7480 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 15 Nov 2003 18:50:58 +0000 Subject: [PATCH] @@ -3,7 +3,10 @@ Minor portability fixes: * Missing #include and } Thanks to report * getgroups returns int, not gid_t (!). } from Peter Benie. - + * Dummy `check' target in Makefile.in. } + * Bogus strsignal emulation for broken platforms. } Thanks to + * Bogus WCOREDUMP emulation for broken platforms. } report from + Nelson Beebe -- userv (1.0.3-2) unstable; urgency=low --- Makefile.in | 3 +++ acconfig.h | 10 ++++++++++ configure.in | 15 ++++++++++++++- debian/changelog | 5 ++++- 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 2760921..9902914 100644 --- a/Makefile.in +++ b/Makefile.in @@ -98,6 +98,9 @@ uninstall: uninstall-doc: cd $docdir && rm -rf $(TARGETS_DOC_RM) +check: + @echo There is no validation suite for this package. + daemon: overlord.o process.o servexec.o parserlexer.o debug.o lib.o both.o $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) diff --git a/acconfig.h b/acconfig.h index 80cec87..55efe25 100644 --- a/acconfig.h +++ b/acconfig.h @@ -39,6 +39,11 @@ @BOTTOM@ +/* STRSIGNAL */ +#ifndef HAVE_STRSIGNAL +#define STRSIGNAL(x) "[platform has no strsignal!]" +#endif + /* EPROTO */ #ifndef HAVE_EPROTO #define EPROTO 0 @@ -49,6 +54,11 @@ #define LOG_AUTHPRIV LOG_AUTH #endif +/* WCOREDUMP */ +#ifndef HAVE_WCOREDUMP +#define WCOREDUMP(x) 0 +#endif + /* GNU C attributes. */ #ifndef FUNCATTR #ifdef HAVE_GNUC25_ATTRIB diff --git a/configure.in b/configure.in index f6f4f81..65f6ed9 100644 --- a/configure.in +++ b/configure.in @@ -46,7 +46,7 @@ AC_CHECK_PROGS(MD5SUM_SIMPLE, md5sum md5 gmd5sum) CFLAGS="$CFLAGS -D_GNU_SOURCE" AC_CHECK_LIB(socket,socket) -AC_CHECK_FUNCS(setenv) +AC_CHECK_FUNCS(setenv strsignal) AC_CACHE_CHECK(for EPROTO,userv_cv_hdr_eproto, AC_EGREP_CPP(yes, @@ -74,6 +74,19 @@ then AC_DEFINE(HAVE_LOG_AUTHPRIV) fi +AC_CACHE_CHECK(for WCOREDUMP,userv_cv_hdr_wcoredump, + AC_EGREP_CPP(yes, +[ +#include +#ifdef WCOREDUMP + yes +#endif +],userv_cv_hdr_wcoredump=yes,userv_cv_hdr_wcoredump=no)) +if test $userv_cv_hdr_wcoredump = yes +then + AC_DEFINE(HAVE_WCOREDUMP) +fi + AC_SUBST(OPTIMISE) if test "${GCC-no}" = yes; then OPTIMISE=-O2 diff --git a/debian/changelog b/debian/changelog index 00f98a5..050254c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,7 +3,10 @@ userv (1.0.4-1) unstable; urgency=low Minor portability fixes: * Missing #include and } Thanks to report * getgroups returns int, not gid_t (!). } from Peter Benie. - + * Dummy `check' target in Makefile.in. } + * Bogus strsignal emulation for broken platforms. } Thanks to + * Bogus WCOREDUMP emulation for broken platforms. } report from + Nelson Beebe -- userv (1.0.3-2) unstable; urgency=low -- 2.30.2