Skip to content

Commit b1a9c49

Browse files
Louis RannouLouis Rannou
authored andcommitted
Fix compiling with musl
Fix two includes in OVAL. Those are minor but they fail the compilation with the musl library. The include <limits.h> is included to provide PATH_MAX. The include <libgen.h> is required for 'basename'. The include <limits.h> is just unrequired and can be removed from systemdshared.h. Signed-off-by: Louis Rannou <louis.rannou@non.se.com>
1 parent 56f36ba commit b1a9c49

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/OVAL/probes/unix/linux/systemdshared.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include <config.h>
3636
#endif
3737

38-
#include <limits.h>
38+
#include <libgen.h>
3939
#include <stdio.h>
4040
#include "common/debug_priv.h"
4141
#include "oscap_helpers.h"

src/OVAL/probes/unix/process58_probe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
#include <string.h>
6060
#include <stdio.h>
6161
#include <errno.h>
62+
#include <limits.h>
6263
#ifdef HAVE_STDIO_EXT_H
6364
# include <stdio_ext.h>
6465
#endif

0 commit comments

Comments
 (0)