Skip to content

Commit c14f30d

Browse files
extrowerkggouaillardet
authored andcommitted
fcntl include bugfix
Signed-off-by: Zoltán Mizsei <[email protected]> (cherry picked from commit ac3f8a1)
1 parent 864ec5e commit c14f30d

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
@@ -31,8 +31,12 @@
3131
#ifdef HAVE_SYS_STAT_H
3232
#include <sys/stat.h>
3333
#endif
34-
#ifdef HAVE_SYS_FCNTL_H
34+
#ifdef HAVE_FCNTL_H
3535
#include <fcntl.h>
36+
#else
37+
#ifdef HAVE_SYS_FCNTL_H
38+
#include <sys/fcntl.h>
39+
#endif
3640
#endif
3741

3842
#include <string.h>

0 commit comments

Comments
 (0)