Skip to content

Commit 11cd9ab

Browse files
author
rhc54
committed
Merge pull request open-mpi#874 from ggouaillardet/topic/v1.10/missing_include_files
Topic/v1.10/missing include files
2 parents 7423318 + 397e763 commit 11cd9ab

File tree

17 files changed

+71
-20
lines changed

17 files changed

+71
-20
lines changed

ompi/mca/btl/sm/btl_sm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727

2828
#include <sys/types.h>
2929
#include <sys/stat.h>
30+
#ifdef HAVE_UNISTD_H
31+
#include <unistd.h>
32+
#endif
3033
#ifdef HAVE_FCNTL_H
3134
#include <fcntl.h>
3235
#endif /* HAVE_FCNTL_H */

ompi/mca/btl/tcp/btl_tcp.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
1212
* Copyright (c) 2010-2011 Cisco Systems, Inc. All rights reserved.
13+
* Copyright (c) 2015 Research Organization for Information Science
14+
* and Technology (RIST). All rights reserved.
1315
* $COPYRIGHT$
1416
*
1517
* Additional copyrights may follow
@@ -32,6 +34,9 @@
3234
#ifdef HAVE_NETINET_IN_H
3335
#include <netinet/in.h>
3436
#endif
37+
#ifdef HAVE_UNISTD_H
38+
#include <unistd.h>
39+
#endif
3540

3641
/* Open MPI includes */
3742
#include "opal/mca/event/event.h"

ompi/mca/btl/usnic/btl_usnic_cagent.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/*
22
* Copyright (c) 2014-2015 Cisco Systems, Inc. All rights reserved.
3+
* Copyright (c) 2015 Research Organization for Information Science
4+
* and Technology (RIST). All rights reserved.
35
* $COPYRIGHT$
46
*
57
* Additional copyrights may follow
@@ -14,7 +16,9 @@
1416
#include <sys/socket.h>
1517
#include <sys/un.h>
1618
#include <unistd.h>
19+
#ifdef HAVE_ALLOCA_H
1720
#include <alloca.h>
21+
#endif
1822

1923
#include "opal_stdint.h"
2024
#include "opal/threads/mutex.h"

ompi/mca/btl/usnic/btl_usnic_cclient.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/*
22
* Copyright (c) 2014-2015 Cisco Systems, Inc. All rights reserved.
3+
* Copyright (c) 2015 Research Organization for Information Science
4+
* and Technology (RIST). All rights reserved.
35
* $COPYRIGHT$
46
*
57
* Additional copyrights may follow
@@ -16,7 +18,9 @@
1618
#include <sys/types.h>
1719
#include <string.h>
1820
#include <unistd.h>
21+
#ifdef HAVE_ALLOCA_H
1922
#include <alloca.h>
23+
#endif
2024
#include <time.h>
2125

2226
#include "opal_stdint.h"

ompi/mca/coll/fca/coll_fca_ops.c

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
/**
2-
Copyright (c) 2011 Mellanox Technologies. All rights reserved.
3-
$COPYRIGHT$
4-
5-
Additional copyrights may follow
6-
7-
$HEADER$
1+
/*
2+
* Copyright (c) 2011 Mellanox Technologies. All rights reserved.
3+
* Copyright (c) 2015 Research Organization for Information Science
4+
* and Technology (RIST). All rights reserved.
5+
* $COPYRIGHT$
6+
*
7+
* Additional copyrights may follow
8+
*
9+
* $HEADER$
810
*/
911

12+
#ifdef HAVE_ALLOCA_H
13+
#include <alloca.h>
14+
#endif
15+
1016
#include "ompi_config.h"
1117
#include "ompi/constants.h"
1218
#include "coll_fca.h"

ompi/mca/coll/tuned/coll_tuned.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
/* need to include our own topo prototypes so we can malloc data on the comm correctly */
3636
#include "coll_tuned_topo.h"
37+
#include "opal/util/output.h"
3738

3839
/* also need the dynamic rule structures */
3940
#include "coll_tuned_dynamic_rules.h"

ompi/mca/fbtl/base/fbtl_base_find_available.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
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) 2015 Research Organization for Information Science
14+
* and Technology (RIST). All rights reserved.
1315
* $COPYRIGHT$
1416
*
1517
* Additional copyrights may follow

ompi/mca/pml/yalla/pml_yalla.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
/*
22
* Copyright (C) Mellanox Technologies Ltd. 2001-2011. ALL RIGHTS RESERVED.
3+
* Copyright (c) 2015 Research Organization for Information Science
4+
* and Technology (RIST). All rights reserved.
35
* $COPYRIGHT$
46
*
57
* Additional copyrights may follow
68
*
79
* $HEADER$
810
*/
911

12+
#ifdef HAVE_ALLOCA_H
13+
#include <alloca.h>
14+
#endif
15+
1016
#include "pml_yalla.h"
1117
#include "pml_yalla_request.h"
1218

ompi/mca/rcache/vma/rcache_vma_tree.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
1919
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
2020
* reserved.
21+
* Copyright (c) 2015 Research Organization for Information Science
22+
* and Technology (RIST). All rights reserved.
2123
* $COPYRIGHT$
2224
*
2325
* Additional copyrights may follow
@@ -32,6 +34,7 @@
3234
#include "ompi_config.h"
3335

3436
#include "opal/mca/mca.h"
37+
#include "opal/util/output.h"
3538
#include "rcache_vma_tree.h"
3639

3740
OBJ_CLASS_INSTANCE(mca_rcache_vma_reg_list_item_t, opal_list_item_t, NULL, NULL);

opal/datatype/opal_datatype_copy.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
1414
* Copyright (c) 2011 NVIDIA Corporation. All rights reserved.
1515
* Copyright (c) 2013 Intel, Inc. All rights reserved.
16+
* Copyright (c) 2015 Research Organization for Information Science
17+
* and Technology (RIST). All rights reserved.
1618
* $COPYRIGHT$
1719
*
1820
* Additional copyrights may follow
@@ -23,9 +25,6 @@
2325
#include "opal_config.h"
2426

2527
#include <stddef.h>
26-
#ifdef HAVE_ALLOCA_H
27-
#include <alloca.h>
28-
#endif
2928
#include <stdlib.h>
3029

3130
#include "opal/prefetch.h"

0 commit comments

Comments
 (0)