Skip to content

Commit

Permalink
REXPruning: fix the finding of HAVE_PTHREAD_H header maco and config
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyh15 authored and ouankou committed Feb 5, 2020
1 parent be2e65f commit 149de56
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ docs: FORCE_DOCS_TO_BE_MADE
$(MAKE) -Ctests/nonsmoke/functional/roseTests/astInterfaceTests check && \
$(MAKE) -Ctests/nonsmoke/functional/roseTests/ompLoweringTests check && \
$(MAKE) -Ctests/nonsmoke/functional/CompileTests/UPC_tests check && \
$(MAKE) -Cdocs docs && \
$(MAKE) -Cdocs docs \
else \
echo "Please look at the ROSE web site for documentation (www.roseCompiler.org)"; \
fi
Expand Down
2 changes: 2 additions & 0 deletions config/support-rose.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,8 @@ AC_CHECK_TYPE([hrtime_t],[AC_DEFINE(HAVE_HRTIME_T, 1, [Define to 1 if hrtime_t i
#include <sys/time.h>
#endif])
AC_CHECK_HEADERS(pthread.h)
AC_CHECK_FUNCS([gethrtime read_real_time time_base_to_time clock_gettime mach_absolute_time])
dnl Cray UNICOS _rtc() (real-time clock) intrinsic
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Author: Gergo Barany
// $Id: AstSharedMemoryParallelSimpleProcessing.C,v 1.1 2008/01/08 02:56:39 dquinlan Exp $
#include "sage3basic.h"
#include "rosePublicConfig.h"

#ifdef _REENTRANT // Does user want multi-thread support? (e.g., g++ -pthread)
# ifdef HAVE_PTHREAD_H // Do we have POSIX threads?
# ifdef ROSE_HAVE_PTHREAD_H // Do we have POSIX threads?
# include <pthread.h>
# else
// This should all be switched to Boost Threads instead, which is more portable.
Expand Down
2 changes: 1 addition & 1 deletion src/util/commandlineProcessing/commandline_processing.C
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <rose_config.h>

#include <rosePublicConfig.h>
#include "StringUtility.h"
#include <string.h>
#include <iostream>
Expand Down

0 comments on commit 149de56

Please sign in to comment.