Skip to content

Commit

Permalink
fs: fuse: ensure S_IFxxx macros are available
Browse files Browse the repository at this point in the history
set _XOPEN_SOURCE appropriately to avoid compilation errors
due to missing S_IFxxx macros on some systems.

Signed-off-by: Benjamin Cabé <[email protected]>
  • Loading branch information
kartben authored and aescolar committed Aug 11, 2024
1 parent 40eae69 commit 4458a05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subsys/fs/fuse_fs_access.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

#define FUSE_USE_VERSION 26

#undef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700

#include <fuse.h>
#include <libgen.h>
#include <linux/limits.h>
Expand All @@ -15,6 +18,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>

Expand Down

0 comments on commit 4458a05

Please sign in to comment.