diff --git a/openair-cn/S1AP/s1ap_eNB_management_procedures.c b/openair-cn/S1AP/s1ap_eNB_management_procedures.c
index ee91c670654b7389399e46c70f6be32493221f95..1d6ace218a8ec810e71e9dbee76633ba30d35d01 100644
--- a/openair-cn/S1AP/s1ap_eNB_management_procedures.c
+++ b/openair-cn/S1AP/s1ap_eNB_management_procedures.c
@@ -43,9 +43,6 @@
 
 s1ap_eNB_internal_data_t s1ap_eNB_internal_data;
 
-static int s1ap_eNB_generate_s1_setup_request(
-    s1ap_eNB_instance_t *instance_p, s1ap_eNB_mme_data_t *s1ap_mme_data_p);
-
 RB_GENERATE(s1ap_mme_map, s1ap_eNB_mme_data_s, entry, s1ap_eNB_compare_assoc_id);
 
 inline int s1ap_eNB_compare_assoc_id(
diff --git a/openair-cn/SCTP/sctp_common.h b/openair-cn/SCTP/sctp_common.h
index ffc2920ef23fd6de85dbd7c9cf4d4548e40f28de..c636c683cecf2c40b4c3f8083ca23f878687e241 100644
--- a/openair-cn/SCTP/sctp_common.h
+++ b/openair-cn/SCTP/sctp_common.h
@@ -36,12 +36,13 @@
  *  @ingroup _sctp
  */
 
-#include <stdio.h>
-#include <stdint.h>
-
 #ifndef SCTP_COMMON_H_
 #define SCTP_COMMON_H_
 
+#include <stdio.h>
+#include <stdint.h>
+#include <sys/socket.h>
+
 #if defined(ENB_MODE)
 # include "UTIL/LOG/log.h"
 # define SCTP_ERROR(x, args...) LOG_E(SCTP, x, ##args)