diff --git a/fvtest/porttest/si.cpp b/fvtest/porttest/si.cpp index 3ef499b2eb..8ba88b4bbd 100644 --- a/fvtest/porttest/si.cpp +++ b/fvtest/porttest/si.cpp @@ -42,6 +42,7 @@ #include #endif /* defined(OMR_OS_WINDOWS) */ #if !defined(OMR_OS_WINDOWS) +#include #include #include #if defined(J9ZOS390) diff --git a/thread/zos390/rasthrsup.c b/thread/zos390/rasthrsup.c index a487694916..bd6a5887fa 100644 --- a/thread/zos390/rasthrsup.c +++ b/thread/zos390/rasthrsup.c @@ -26,5 +26,6 @@ uintptr_t omrthread_get_ras_tid(void) { - return (uintptr_t)(*(uint32_t *)pthread_self().__); + pthread_t id = pthread_self(); + return (uintptr_t)*(unsigned long long *)&id; }