Skip to content

Commit d57db96

Browse files
authored
Merge pull request #5603 from ggouaillardet/topic/v3.0.x/haiku
v3.0.x: add missing #ifdef protection around header files
2 parents 864ec5e + 9835263 commit d57db96

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
@@ -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>

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)