Timur Davydov has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/41921?usp=email )
Change subject: core: guard SCTP include in osmo_io_internal.h ...................................................................... core: guard SCTP include in osmo_io_internal.h Include <netinet/sctp.h> only when libsctp support is available. This avoids pulling in SCTP-specific headers on builds where libsctp is disabled or unavailable, while keeping the internal header usable across all configurations. No functional changes intended. Change-Id: Icd626d908192a954d55d76a46d7cc863ed332631 --- M src/core/osmo_io_internal.h 1 file changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/21/41921/1 diff --git a/src/core/osmo_io_internal.h b/src/core/osmo_io_internal.h index f425da2..727f617 100644 --- a/src/core/osmo_io_internal.h +++ b/src/core/osmo_io_internal.h @@ -2,9 +2,13 @@ #pragma once +#include "../config.h" + #include <unistd.h> #include <stdbool.h> +#ifdef HAVE_LIBSCTP #include <netinet/sctp.h> +#endif #include <osmocom/core/osmo_io.h> #include <osmocom/core/linuxlist.h> @@ -12,8 +16,6 @@ #include <osmocom/core/select.h> #include <osmocom/core/socket.h> -#include "../config.h" - #define OSMO_IO_DEFAULT_MSGB_SIZE 1024 #define OSMO_IO_DEFAULT_MSGB_HEADROOM 128 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41921?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Icd626d908192a954d55d76a46d7cc863ed332631 Gerrit-Change-Number: 41921 Gerrit-PatchSet: 1 Gerrit-Owner: Timur Davydov <[email protected]>
