summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/l2tp
diff options
context:
space:
mode:
authorDmitriy Eshenko <dmitriy.eshenko@accel-ppp.org>2024-04-14 18:24:50 +0300
committerGitHub <noreply@github.com>2024-04-14 18:24:50 +0300
commitfc78e082352168a2051928d25eaf0c0b09d20873 (patch)
treeadfc7b0b13e78e516d92b584c67991f3c7ee358c /accel-pppd/ctrl/l2tp
parent74a58e70f03db19263d377dbad0ca289ea07a7ad (diff)
parentce3ee7595c1239a20de589c95dd8ccce38ae49e7 (diff)
downloadaccel-ppp-fc78e082352168a2051928d25eaf0c0b09d20873.tar.gz
accel-ppp-fc78e082352168a2051928d25eaf0c0b09d20873.zip
Merge pull request #130 from nuclearcat/add-musl-compatibility
musl: Add musl compatibility
Diffstat (limited to 'accel-pppd/ctrl/l2tp')
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index 027d7100..9fc2283c 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -853,7 +853,11 @@ static void l2tp_tunnel_free_sessions(struct l2tp_conn_t *conn)
void *sessions = conn->sessions;
conn->sessions = NULL;
+#ifdef HAVE_FREE_FN_T
tdestroy(sessions, (__free_fn_t)l2tp_session_free);
+#else
+ tdestroy(sessions, free);
+#endif
/* Let l2tp_session_free() handle the session counter and
* the reference held by the tunnel.
*/