Skip to content

Commit 67e5af4

Browse files
authored
Merge pull request #5602 from ggouaillardet/topic/v3.1.x/haiku
v3.1.x: add missing #ifdef protection around header files
2 parents f858d7d + fb36ab3 commit 67e5af4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-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>

test/util/opal_path_nfs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* Copyright (c) 2010 IBM Corporation. All rights reserved.
1717
* Copyright (c) 2014 Los Alamos National Security, LLC. All rights
1818
* reserved.
19+
* Copyright (c) 2018 Research Organization for Information Science
20+
* and Technology (RIST). All rights reserved.
1921
* $COPYRIGHT$
2022
*
2123
* Additional copyrights may follow
@@ -31,7 +33,9 @@
3133
#include <dirent.h>
3234

3335
#include <sys/param.h>
36+
#ifdef HAVE_SYS_MOUNT_H
3437
#include <sys/mount.h>
38+
#endif
3539
#ifdef HAVE_SYS_STATFS_H
3640
#include <sys/statfs.h>
3741
#endif

0 commit comments

Comments
 (0)