Skip to content

Commit ac3f8a1

Browse files
committed
fcntl include bugfix
Signed-off-by: Zoltán Mizsei <[email protected]>
1 parent 97da19f commit ac3f8a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

opal/util/stacktrace.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@
3232
#ifdef HAVE_SYS_STAT_H
3333
#include <sys/stat.h>
3434
#endif
35-
#ifdef HAVE_SYS_FCNTL_H
35+
#ifdef HAVE_FCNTL_H
3636
#include <fcntl.h>
37+
#else
38+
#ifdef HAVE_SYS_FCNTL_H
39+
#include <sys/fcntl.h>
40+
#endif
3741
#endif
3842

3943
#include <string.h>

0 commit comments

Comments
 (0)