Here is the first draft of the mods
It passes the testSuite on Darwin
E
P.S.
There are some more, I will keep researching
[enrico@enrico-imac ooRexx.svn.src]$svn diff
Index: CMakeLists.txt
===
--- CMakeLists.txt (revision 11796)
+++ CMakeLists.txt (working copy)
@@ -344,7 +344,20 @@
set (ORX_SYSLIB_PTHREAD pthread)
endif ()
+
# Check header files and functions. These are all defined to the config.h file.
+check_include_file(alloca.h HAVE_ALLOCA_H)
+check_include_file(fnmatch.h HAVE_FNMATCH_H)
+check_include_file(sched.h HAVE_SCHED_H)
+check_include_file(sys/sched.h HAVE_SYS_SCHED_H)
+check_include_file(sys/time.h HAVE_SYS_TIME_H)
+check_include_file(time.h HAVE_TIME_H)
+check_include_file(utime.h HAVE_UTIME_H)
+check_include_file(wordexp.h HAVE_WORDEXP_H)
+
+check_function_exists(wordexp HAVE_WORDEXP)
+check_function_exists(euidaccess HAVE_EUIDACCESS)
+
check_include_file(ctype.h HAVE_CTYPE_H)
check_include_file(float.h HAVE_FLOAT_H)
check_include_file(limits.h HAVE_LIMITS_H)
@@ -360,7 +373,6 @@
check_include_file(stdio.h HAVE_STDIO_H)
check_include_file(stdlib.h HAVE_STDLIB_H)
check_include_file(string.h HAVE_STRING_H)
-check_include_file(time.h HAVE_TIME_H)
check_function_exists(vprintf HAVE_VPRINTF)
check_include_file(fcntl.h HAVE_FCNTL_H)
check_function_exists(nanosleep HAVE_NANOSLEEP)
@@ -411,10 +423,10 @@
return 0;}"
HAVE_DLADDR)
check_symbol_exists(_PC_CASE_SENSITIVE unistd.h HAVE_PC_CASE_SENSITIVE)
+
check_symbol_exists(FNM_CASEFOLD fnmatch.h HAVE_FNM_CASEFOLD)
check_symbol_exists(KDMKTONE linux/kd.h HAVE_KDMKTONE)
check_include_file(pwd.h HAVE_PWD_H)
- check_include_file(sched.h HAVE_SCHED_H)
check_function_exists(sighold HAVE_SIGHOLD)
check_function_exists(strdup HAVE_STRDUP)
check_include_file(strings.h HAVE_STRINGS_H)
@@ -428,7 +440,6 @@
check_include_file(sys/socket.h HAVE_SYS_SOCKET_H)
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
check_include_file(sys/syscall.h HAVE_SYS_SYSCALL_H)
- check_include_file(sys/time.h HAVE_SYS_TIME_H)
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
check_include_file(sys/utsname.h HAVE_SYS_UTSNAME_H)
check_include_file(sys/wait.h HAVE_SYS_WAIT_H)
Index: common/platform/unix/SysSemaphore.cpp
===
--- common/platform/unix/SysSemaphore.cpp (revision 11796)
+++ common/platform/unix/SysSemaphore.cpp (working copy)
@@ -50,16 +50,26 @@
#include
#include
#include
-#include
-#ifdef AIX
-#include
-#include
+
+#if defined( HAVE_SYS_SCHED_H )
+# include
#endif
+#if defined( HAVE_SCHED_H )
+# include
+#endif
-#if defined(OPSYS_SUN) || defined(__HAIKU__)
-#include
+#if defined( HAVE_SYS_TIME_H )
+# include
#endif
+#if defined( HAVE_TIME_H )
+# include
+#endif
+
+#if defined( HAVE_UTIME_H )
+#include
+#endif
+
#include
#include "SysSemaphore.hpp"
Index: config.h.in.cmake
===
--- config.h.in.cmake (revision 11796)
+++ config.h.in.cmake (working copy)
@@ -1,5 +1,37 @@
/* config.h.in. Generated from CMake. */
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_SCHED_H
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SCHED_H
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_SYS_TIME_H
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_TIME_H
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_UTIME_H
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_ALLOCA_H
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_FNMATCH_H
+
+/* Define to 1 if you have the header file. */
+#cmakedefine HAVE_WORDEXP_H
+
+
+/* Define to 1 if you have the `wordexp' function. */
+#cmakedefine HAVE_WORDEXP
+
+/* Define to 1 if you have the `euidaccess' function. */
+#cmakedefine HAVE_EUIDACCESS
+
+
/* Define to 1 if you have the header file. */
#cmakedefine HAVE_ATTR_XATTR_H
@@ -97,7 +129,7 @@
#cmakedefine HAVE_DLADDR
/* Define to 1 if _PC_HAVE_CASE_SENSITIVE is a valid value */
-#cmakedefine HAVE_PC_HAVE_CASE_SENSITIVE
+#cmakedefine HAVE_PC_CASE_SENSITIVE
/* Define to 1 if FNM_CASEFOLD is a valid value */
#cmakedefine HAVE_FNM_CASEFOLD
@@ -108,9 +140,6 @@
/* Define to 1 if you have the header file. */
#cmakedefine HAVE_PWD_H
-/* Define to 1 if you have the header file. */
-#cmakedefine HAVE_SCHED_H
-
/* Define to 1 if you have the `setlocale' function. */
#cmakedefine HAVE_SETLOCALE
@@ -171,8 +200,6 @@
/* Define to 1 if you have the header file. */
#cmakedefine HAVE_SYS_SYSCALL_H
-/* Define to 1 if you have the header file. */
-#cmakedefine HAVE_SYS_TIME_H
/* Define to 1 if you have the header file. */
#cmakedefine HAVE_SYS_TYPES_H
@@ -183,9 +210,6 @@
/*