Skip to content

Commit 12eed85

Browse files
author
Ralph Castain
committed
Add missing include
1 parent 6ce1877 commit 12eed85

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

ompi/mca/fs/base/fs_base_get_parent_dir.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
* Copyright (c) 2004-2011 The University of Tennessee and The University
66
* of Tennessee Research Foundation. All rights
77
* reserved.
8-
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
8+
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
99
* University of Stuttgart. All rights reserved.
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
1212
* Copyright (c) 2008-2011 University of Houston. All rights reserved.
13+
* Copyright (c) 2016 Intel, Inc. All rights reserved.
1314
* $COPYRIGHT$
14-
*
15+
*
1516
* Additional copyrights may follow
16-
*
17+
*
1718
* $HEADER$
1819
*/
1920

@@ -28,8 +29,11 @@
2829
#include "ompi/mca/fs/fs.h"
2930
#include "ompi/mca/fs/base/base.h"
3031

32+
#ifdef HAVE_UNISTD_H
33+
#include <unistd.h>
34+
#endif
3135
#ifdef HAVE_SYS_STATFS_H
32-
#include <sys/statfs.h> /* or <sys/vfs.h> */
36+
#include <sys/statfs.h> /* or <sys/vfs.h> */
3337
#endif
3438
#ifdef HAVE_SYS_PARAM_H
3539
#include <sys/param.h>
@@ -47,7 +51,7 @@ void mca_fs_base_get_parent_dir ( char *filename, char **dirnamep)
4751
int err;
4852
char *dir = NULL, *slash;
4953
struct stat statbuf;
50-
54+
5155

5256

5357
err = lstat(filename, &statbuf);

0 commit comments

Comments
 (0)