Skip to content

Commit 889b663

Browse files
committed
Fix some missing includes and one #ifdef that shouldn't have been
included Thanks to Paul Hargrove for identifying the problem and suggesting a fix. Signed-off-by: Ralph Castain <[email protected]> (cherry picked from commit on PMIx v1.2 branch openpmix/openpmix@4269e84) Signed-off-by: Joshua Hursey <[email protected]>
1 parent e4798fb commit 889b663

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

opal/mca/pmix/pmix112/pmix/include/pmix/pmix_common.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved
2+
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
33
*
44
* Redistribution and use in source and binary forms, with or without
55
* modification, are permitted provided that the following conditions are
@@ -50,9 +50,8 @@
5050
#include <stdlib.h>
5151
#include <stdint.h>
5252
#include <string.h>
53-
#ifdef HAVE_SYS_TIME_H
5453
#include <sys/time.h> /* for struct timeval */
55-
#endif
54+
5655
#include <pmix_version.h>
5756

5857
#if defined(c_plusplus) || defined(__cplusplus)

opal/mca/pmix/pmix112/pmix/src/sm/pmix_mmap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
* All rights reserved.
44
* Copyright (c) 2017 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
6+
* Copyright (c) 2017 Intel, Inc. All rights reserved.
67
* $COPYRIGHT$
78
*
89
* Additional copyrights may follow
910
*
1011
* $HEADER$
1112
*/
1213

14+
#include <src/include/pmix_config.h>
1315

1416
#include <unistd.h>
1517
#ifdef HAVE_SYS_TYPES_H

opal/mca/pmix/pmix112/pmix/src/sm/pmix_sm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/*
22
* Copyright (c) 2015-2016 Mellanox Technologies, Inc.
33
* All rights reserved.
4+
* Copyright (c) 2017 Intel, Inc. All rights reserved.
45
* $COPYRIGHT$
56
*
67
* Additional copyrights may follow
78
*
89
* $HEADER$
910
*/
11+
#include <src/include/pmix_config.h>
1012

1113
#include <pmix/pmix_common.h>
1214
#include "src/include/pmix_globals.h"

opal/mca/pmix/pmix112/pmix/src/sm/pmix_sm.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Copyright (c) 2015-2016 Mellanox Technologies, Inc.
33
* All rights reserved.
4+
* Copyright (c) 2017 Intel, Inc. All rights reserved.
45
* $COPYRIGHT$
56
*
67
* Additional copyrights may follow
@@ -11,6 +12,8 @@
1112
#ifndef PMIX_SM_H
1213
#define PMIX_SM_H
1314

15+
#include <src/include/pmix_config.h>
16+
1417
#include <pmix/pmix_common.h>
1518
#include <src/include/pmix_config.h>
1619

0 commit comments

Comments
 (0)