From 4e19f7ddda6ed24ccf3386b58f49be311e14b819 Mon Sep 17 00:00:00 2001 From: Fabian Mauchle Date: Tue, 14 May 2019 07:35:54 +0200 Subject: [PATCH] fix compile issue from statusserver-auto for some platforms. --- radsecproxy.c | 2 +- tests/Makefile.am | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/radsecproxy.c b/radsecproxy.c index 86f4c4c..8861626 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1950,7 +1950,7 @@ void *clientwr(void *arg) { pthread_mutex_unlock(rqout->lock); } do_resend = 0; - if (server->state == RSP_SERVER_STATE_CONNECTED && !conf->statusserver == RSP_STATSRV_OFF) { + if (server->state == RSP_SERVER_STATE_CONNECTED && !(conf->statusserver == RSP_STATSRV_OFF)) { gettimeofday(&now, NULL); if ((conf->statusserver == RSP_STATSRV_ON && now.tv_sec - (laststatsrv.tv_sec ? server->lastrcv.tv_sec : laststatsrv.tv_sec) > STATUS_SERVER_PERIOD) || (conf->statusserver == RSP_STATSRV_MINIMAL && statusserver_requested && now.tv_sec - laststatsrv.tv_sec > STATUS_SERVER_PERIOD) || diff --git a/tests/Makefile.am b/tests/Makefile.am index b8fcd19..50f18ca 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -3,5 +3,6 @@ AUTOMAKE_OPTIONS = foreign check_PROGRAMS = t_fticks AM_CFLAGS = -g -Wall -Werror @SSL_CFLAGS@ @TARGET_CFLAGS@ LDADD = $(top_builddir)/librsp.a @SSL_LIBS@ +LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@ TESTS = $(check_PROGRAMS)