summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-07-11 19:20:02 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-27 17:23:33 +0200
commitc1307ee64d25f4b19397bcf4791ba4c85d1dbe79 (patch)
treeb069af6487bc10a27726793de23dc87820d69e9b
parentc9467124c9284c95d9035d829d4ac601fcba083c (diff)
fix for FreeBSD: ifdef SCTP_AUTHENTICATION_INDICATION3G_2016_09
Don't print SCTP_AUTHENTICATION_INDICATION if it isn't defined. This helps the FreeBSD build in particular. Change-Id: Iaff5067c84b4d3ccda913c1f44b4bb0c210f14e5
-rw-r--r--src/sua.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sua.c b/src/sua.c
index 07066da..af623c8 100644
--- a/src/sua.c
+++ b/src/sua.c
@@ -1337,9 +1337,11 @@ static int sua_srv_conn_cb(struct osmo_stream_srv *conn)
case SCTP_ADAPTATION_INDICATION:
printf("===> SCTP_ADAPTATION_INDICATION\n");
break;
+#ifdef SCTP_AUTHENTICATION_INDICATION
case SCTP_AUTHENTICATION_INDICATION:
printf("===> SCTP_AUTHENTICATION_INDICATION\n");
break;
+#endif
#ifdef SCTP_SENDER_DRY_EVENT
case SCTP_SENDER_DRY_EVENT:
printf("===> SCTP_SENDER_DRY_EVENT\n");
@@ -1526,9 +1528,11 @@ static int sua_cli_read_cb(struct osmo_stream_cli *conn)
case SCTP_ADAPTATION_INDICATION:
printf("===> SCTP_ADAPTATION_INDICATION\n");
break;
+#ifdef SCTP_AUTHENTICATION_INDICATION
case SCTP_AUTHENTICATION_INDICATION:
printf("===> SCTP_AUTHENTICATION_INDICATION\n");
break;
+#endif
#ifdef SCTP_SENDER_DRY_EVENT
case SCTP_SENDER_DRY_EVENT:
printf("===> SCTP_SENDER_DRY_EVENT\n");