diff options
| author | Denys Fedoryshchenko <denys.f@collabora.com> | 2024-09-02 10:25:45 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-02 10:25:45 +0300 |
| commit | d43bb1044b78517150e4f3a2ddf496486979e7de (patch) | |
| tree | 9db426752552a23796c9fc3c0ac749b4ac099681 /accel-pppd/extra | |
| parent | 2d38a77c008524e293e0dc4b1e46c9093e7a9457 (diff) | |
| parent | 3be221b510112a30922b1da2697eaaaca09ebfd5 (diff) | |
| download | accel-ppp-d43bb1044b78517150e4f3a2ddf496486979e7de.tar.gz accel-ppp-d43bb1044b78517150e4f3a2ddf496486979e7de.zip | |
Merge pull request #179 from svlobanov/test-in-alpine2
ci: run tests in alpine vm
Diffstat (limited to 'accel-pppd/extra')
| -rw-r--r-- | accel-pppd/extra/logwtmp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/accel-pppd/extra/logwtmp.c b/accel-pppd/extra/logwtmp.c index f95b62c4..f66e6403 100644 --- a/accel-pppd/extra/logwtmp.c +++ b/accel-pppd/extra/logwtmp.c @@ -14,6 +14,7 @@ #include "memdebug.h" +#ifdef HAVE_LOGWTMP static void ev_ses_started(struct ap_session *ses) { logwtmp(ses->ifname, ses->username ?: "", ses->ctrl->calling_station_id); @@ -29,5 +30,11 @@ static void init(void) triton_event_register_handler(EV_SES_STARTED, (triton_event_func)ev_ses_started); triton_event_register_handler(EV_SES_FINISHED, (triton_event_func)ev_ses_finished); } +#else +static void init(void) +{ + log_warn("logwtmp is not supported on your platfrom, check libc doc\n"); +} +#endif DEFINE_INIT(200, init); |
