diff --git a/src/Profile/ctau_impl.c b/src/Profile/ctau_impl.c index 3b51e6433..b7dd40e3e 100644 --- a/src/Profile/ctau_impl.c +++ b/src/Profile/ctau_impl.c @@ -230,8 +230,11 @@ hpTimerUnit(void) #else #include #include +#if PY_VERSION_HEX > 0x030D0000 // Python versions after 3.13 + // Include sys/time.h because pyport.h no longer does so. + #include +#endif #endif - static PY_LONG_LONG hpTimer(void) { diff --git a/tools/src/tau_exec b/tools/src/tau_exec index 4e21397e4..b0a02cbd8 100755 --- a/tools/src/tau_exec +++ b/tools/src/tau_exec @@ -878,7 +878,7 @@ else fi python_bindings=`echo $theBinding | sed -e 's/shared/bindings/'` -export PYTHONPATH=${BASEDIR}/lib:$BASEDIR/lib/$python_bindings:$PYTHONPATH +export PYTHONPATH=$BASEDIR/lib/$python_bindings:${BASEDIR}/lib:$PYTHONPATH if [ "x$LD_LIBRARY_PATH" = "x" ] ; then TAUEX_LD_LIBRARY_PATH=$BASEDIR/lib/$theBinding:$BASEDIR/lib