Skip to content

Commit fb36ab3

Browse files
committed
test: protect <sys/mount.h> with the HAVE_SYS_MOUNT_H macro
Thanks Zoltan Mizsei for bringing this to our attention. Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit a02be5e)
1 parent 7466c69 commit fb36ab3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)