Add stddef.h to util.h to avoid duplicate offsetof() def.

In el9 releases, our includes declare offsetof() before our header
chain includes stddef.h, which doesn't properly check if offsetof
is already defined, leading to a redefinition. Just include stddef
at all times here.

Signed-off-by: Auke Kok <auke.kok@versity.com>
This commit is contained in:
Auke Kok
2024-05-23 10:50:14 -07:00
parent 570c05898c
commit 00ebe92186

View File

@@ -2,6 +2,7 @@
#define _UTIL_H_
#include <unistd.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>