Skip to content

Commit 38e3808

Browse files
committed
use #ifdef with AC_CHECK_HEADERS() generated macros
instead of #if Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 0289040 commit 38e3808

File tree

19 files changed

+56
-45
lines changed

19 files changed

+56
-45
lines changed

ompi/mca/fbtl/posix/fbtl_posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#include <unistd.h>
3333
#include <sys/uio.h>
34-
#if HAVE_AIO_H
34+
#ifdef HAVE_AIO_H
3535
#include <aio.h>
3636
#endif
3737

ompi/mca/fbtl/posix/fbtl_posix_ipreadv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include <unistd.h>
2727
#include <sys/uio.h>
28-
#if HAVE_AIO_H
28+
#ifdef HAVE_AIO_H
2929
#include <aio.h>
3030
#endif
3131

ompi/mca/fbtl/posix/fbtl_posix_ipwritev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include <unistd.h>
2626
#include <sys/uio.h>
27-
#if HAVE_AIO_H
27+
#ifdef HAVE_AIO_H
2828
#include <aio.h>
2929
#endif
3030

ompi/mca/sharedfp/sm/sharedfp_sm_file_open.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525

2626
#include "ompi_config.h"
2727

28-
#if HAVE_LIBGEN_H
28+
#ifdef HAVE_LIBGEN_H
2929
#include <libgen.h>
3030
#endif
31-
#if HAVE_SYS_STAT_H
31+
#ifdef HAVE_SYS_STAT_H
3232
#include <sys/stat.h>
3333
#endif
3434

opal/mca/compress/base/compress_base_fns.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/*
22
* Copyright (c) 2004-2010 The Trustees of Indiana University.
33
* All rights reserved.
4-
* Copyright (c) 2015 Research Organization for Information Science
5-
* and Technology (RIST). All rights reserved.
6-
*
4+
* Copyright (c) 2015-2018 Research Organization for Information Science
5+
* and Technology (RIST). All rights reserved.
76
* Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
87
* $COPYRIGHT$
98
*
@@ -16,10 +15,10 @@
1615

1716
#include <string.h>
1817
#include <sys/wait.h>
19-
#if HAVE_SYS_TYPES_H
18+
#ifdef HAVE_SYS_TYPES_H
2019
#include <sys/types.h>
2120
#endif
22-
#if HAVE_UNISTD_H
21+
#ifdef HAVE_UNISTD_H
2322
#include <unistd.h>
2423
#endif
2524
#ifdef HAVE_FCNTL_H

opal/mca/compress/bzip/compress_bzip_module.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* All rights reserved.
44
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
55
*
6-
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
7-
* Copyright (c) 2015 Research Organization for Information Science
8-
* and Technology (RIST). All rights reserved.
6+
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
7+
* Copyright (c) 2015-2018 Research Organization for Information Science
8+
* and Technology (RIST). All rights reserved.
99
* Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
1010
* $COPYRIGHT$
1111
*
@@ -20,7 +20,7 @@
2020
#include <sys/types.h>
2121
#include <sys/wait.h>
2222
#include <sys/stat.h>
23-
#if HAVE_UNISTD_H
23+
#ifdef HAVE_UNISTD_H
2424
#include <unistd.h>
2525
#endif /* HAVE_UNISTD_H */
2626

opal/mca/compress/gzip/compress_gzip_module.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
* All rights reserved.
44
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
55
*
6-
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
7-
* Copyright (c) 2015 Research Organization for Information Science
8-
* and Technology (RIST). All rights reserved.
6+
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
7+
* Copyright (c) 2015-2018 Research Organization for Information Science
8+
* and Technology (RIST). All rights reserved.
99
* Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
1010
* $COPYRIGHT$
1111
*
@@ -20,7 +20,7 @@
2020
#include <sys/types.h>
2121
#include <sys/wait.h>
2222
#include <sys/stat.h>
23-
#if HAVE_UNISTD_H
23+
#ifdef HAVE_UNISTD_H
2424
#include <unistd.h>
2525
#endif /* HAVE_UNISTD_H */
2626

opal/mca/hwloc/base/hwloc_base_util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Copyright (c) 2012-2017 Los Alamos National Security, LLC.
1515
* All rights reserved.
1616
* Copyright (c) 2013-2018 Intel, Inc. All rights reserved.
17-
* Copyright (c) 2015-2017 Research Organization for Information Science
17+
* Copyright (c) 2015-2018 Research Organization for Information Science
1818
* and Technology (RIST). All rights reserved.
1919
* Copyright (C) 2018 Mellanox Technologies, Ltd.
2020
* All rights reserved.
@@ -42,7 +42,7 @@
4242
#ifdef HAVE_SYS_STAT_H
4343
#include <sys/stat.h>
4444
#endif
45-
#if HAVE_FCNTL_H
45+
#ifdef HAVE_FCNTL_H
4646
#include <fcntl.h>
4747
#endif
4848

opal/mca/rcache/grdma/rcache_grdma.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Copyright (c) 2006 Voltaire. All rights reserved.
1414
* Copyright (c) 2011-2018 Los Alamos National Security, LLC. All rights
1515
* reserved.
16+
* Copyright (c) 2018 Research Organization for Information Science
17+
* and Technology (RIST). All rights reserved.
1618
*
1719
* $COPYRIGHT$
1820
*
@@ -30,7 +32,7 @@
3032
#include "opal/class/opal_list.h"
3133
#include "opal/mca/event/event.h"
3234
#include "opal/mca/rcache/rcache.h"
33-
#if HAVE_SYS_MMAN_H
35+
#ifdef HAVE_SYS_MMAN_H
3436
#include <sys/mman.h>
3537
#endif
3638

opal/mca/rcache/udreg/rcache_udreg.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Copyright (c) 2006 Voltaire. All rights reserved.
1414
* Copyright (c) 2011-2016 Los Alamos National Security, LLC. All rights
1515
* reserved.
16+
* Copyright (c) 2018 Research Organization for Information Science
17+
* and Technology (RIST). All rights reserved.
1618
*
1719
* $COPYRIGHT$
1820
*
@@ -32,7 +34,7 @@
3234
#include "opal/mca/event/event.h"
3335
#include "opal/mca/rcache/rcache.h"
3436
#include "opal/util/proc.h"
35-
#if HAVE_SYS_MMAN_H
37+
#ifdef HAVE_SYS_MMAN_H
3638
#include <sys/mman.h>
3739
#endif
3840

0 commit comments

Comments
 (0)