Skip to content

Commit 238f6fa

Browse files
committed
ompi/mca/sharedfp/sm: Include missing sys/stat.h in sharedfp_sm.c
Macros `S_IRUSR`, `S_IWUSR`, `S_IRGRP`, and `S_IROTH` are defined in `sys/stat.h`. See for reference <https://pubs.opengroup.org/onlinepubs/7908799/xsh/sysstat.h.html> and <https://www.gnu.org/software/libc/manual/html_node/Permission-Bits.html>. The lack of this include causes a compilation error on FreeBSD. Signed-off-by: Mosè Giordano <mose@gnu.org>
1 parent 97dda9f commit 238f6fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ompi/mca/sharedfp/sm/sharedfp_sm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
*/
2828

2929
#include "ompi_config.h"
30+
31+
#if HAVE_SYS_STAT_H
32+
# include <sys/stat.h>
33+
#endif /* HAVE_SYS_STAT_H */
34+
3035
#include "mpi.h"
3136
#include "opal/util/printf.h"
3237
#include "ompi/mca/sharedfp/sharedfp.h"

0 commit comments

Comments
 (0)