Skip to content

Commit 11dc86f

Browse files
committed
cleanup: always #include <pthread.h>
pthreads are now mandatory, so there is no more need to Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 1bf238e commit 11dc86f

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

ompi/runtime/ompi_mpi_init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
#ifdef HAVE_SYS_TIME_H
3434
#include <sys/time.h>
3535
#endif /* HAVE_SYS_TIME_H */
36-
#ifdef HAVE_PTHREAD_H
3736
#include <pthread.h>
38-
#endif
3937
#ifdef HAVE_UNISTD_H
4038
#include <unistd.h>
4139
#endif

opal/threads/mutex_unix.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* All rights reserved.
1313
* Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights
1414
* reserved.
15-
* Copyright (c) 2015 Research Organization for Information Science
15+
* Copyright (c) 2015-2016 Research Organization for Information Science
1616
* and Technology (RIST). All rights reserved.
1717
* $COPYRIGHT$
1818
*
@@ -37,9 +37,7 @@
3737

3838
#include "opal_config.h"
3939

40-
#ifdef HAVE_PTHREAD_H
4140
#include <pthread.h>
42-
#endif
4341
#include <errno.h>
4442
#include <stdio.h>
4543

oshmem/runtime/oshmem_shmem_init.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2013 Mellanox Technologies, Inc.
33
* All rights reserved.
4-
* Copyright (c) 2015 Research Organization for Information Science
4+
* Copyright (c) 2015-2016 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
77
* $COPYRIGHT$
@@ -16,9 +16,7 @@
1616
#ifdef HAVE_SYS_TIME_H
1717
#include <sys/time.h>
1818
#endif /* HAVE_SYS_TIME_H */
19-
#ifdef HAVE_PTHREAD_H
2019
#include <pthread.h>
21-
#endif
2220
#ifdef HAVE_UNISTD_H
2321
#include <unistd.h>
2422
#endif

0 commit comments

Comments
 (0)