aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/network/receiver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcharon/network/receiver.c')
-rw-r--r--src/libcharon/network/receiver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcharon/network/receiver.c b/src/libcharon/network/receiver.c
index 9e4fddf5a..6b408cc54 100644
--- a/src/libcharon/network/receiver.c
+++ b/src/libcharon/network/receiver.c
@@ -376,8 +376,10 @@ static job_requeue_t receive_packets(private_receiver_t *this)
/* check IKE major version */
switch (message->get_major_version(message))
{
+#ifdef USE_IKEV2
case IKEV2_MAJOR_VERSION:
break;
+#endif /* USE_IKEV2 */
#ifdef USE_IKEV1
case IKEV1_MAJOR_VERSION:
break;