From 0bbcbbbdbaa4b9865a4524640a4996efe8ae5634 Mon Sep 17 00:00:00 2001 From: hoelscher <jens.hoelscher@fh-muenster.de> Date: Thu, 8 Oct 2015 15:40:10 +0200 Subject: [PATCH] add #ifdef for SCTP_PADDRINFO for 2 socketopions --- gtests/net/packetdrill/run_system_call.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c index 426106fe..175e125b 100644 --- a/gtests/net/packetdrill/run_system_call.c +++ b/gtests/net/packetdrill/run_system_call.c @@ -1865,7 +1865,7 @@ static int check_sctp_sack_info(struct sctp_sack_info_expr *expr, } #endif -#ifdef SCTP_STATUS +#if defined(SCTP_GET_PEER_ADDR_INFO) || defined(SCTP_STATUS) static int check_sctp_paddrinfo(struct sctp_paddrinfo_expr *expr, struct sctp_paddrinfo *sctp_paddrinfo, char **error) @@ -1932,7 +1932,9 @@ static int check_sctp_paddrinfo(struct sctp_paddrinfo_expr *expr, } return STATUS_OK; } +#endif +#ifdef SCTP_STATUS static int check_sctp_status(struct sctp_status_expr *expr, struct sctp_status *sctp_status, char **error) -- GitLab