diff --git a/src/libnm-std-aux/nm-std-aux.h b/src/libnm-std-aux/nm-std-aux.h index 59e7a6e76..d310305e2 100644 --- a/src/libnm-std-aux/nm-std-aux.h +++ b/src/libnm-std-aux/nm-std-aux.h @@ -1367,6 +1367,12 @@ nm_ptr_to_uintptr(const void *p) /*****************************************************************************/ +/* IFNAMSIZ is both defined in and . In the past, these + * headers conflicted, so we cannot simply include either of them in a header-file.*/ +#define NM_IFNAMSIZ 16 + +/*****************************************************************************/ + #define NM_AF_UNSPEC 0 /* AF_UNSPEC */ #define NM_AF_INET 2 /* AF_INET */ #define NM_AF_INET6 10 /* AF_INET6 */ diff --git a/src/libnm-std-aux/nm-std-utils.c b/src/libnm-std-aux/nm-std-utils.c index 18692b198..8901378cb 100644 --- a/src/libnm-std-aux/nm-std-utils.c +++ b/src/libnm-std-aux/nm-std-utils.c @@ -7,9 +7,13 @@ #include #include #include +#include /*****************************************************************************/ +NM_STATIC_ASSERT(NM_IFNAMSIZ == IFNAMSIZ); + +/*****************************************************************************/ size_t nm_utils_get_next_realloc_size(bool true_realloc, size_t requested) {