--- a/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp
+++ b/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp
@@ -1940,7 +1940,7 @@
 * Return:    result - return code from DosOpenEventSem                   *
 *************************************************************************/
 
-RexxMethod1(RexxObjectPtr, SysOpenEventSem, CSTRING, name)
+RexxMethod1(uintptr_t, SysOpenEventSem, CSTRING, name)
 {
     RXSEMDATA *semdata;
 
@@ -1953,7 +1953,7 @@
         return 0;
     }
     semdata->named = true;
-    return (RexxObjectPtr)semdata;
+    return (uintptr_t)semdata;
 }
 
 
@@ -2143,7 +2143,7 @@
 * Return:    result - return code from DosOpenEventSem                   *
 *************************************************************************/
 
-RexxRoutine1(RexxObjectPtr, SysOpenMutexSem, CSTRING, name)
+RexxRoutine1(uintptr_t, SysOpenMutexSem, CSTRING, name)
 {
     RXSEMDATA *semdata;
 
@@ -2156,7 +2156,7 @@
         return 0;
     }
     semdata->named = true;
-    return (RexxObjectPtr)semdata;
+    return (uintptr_t)semdata;
 }