Moritz Hoffmann wrote:
David Ashley wrote:
That patch should be safe to apply.
This builds:

   Index: rexxapi/common/platform/unix/SysCSStream.cpp
   ===================================================================
   --- rexxapi/common/platform/unix/SysCSStream.cpp    (revision 3424)
   +++ rexxapi/common/platform/unix/SysCSStream.cpp    (working copy)
   @@ -50,7 +50,7 @@
    #include <arpa/inet.h>
    #include <sys/ioctl.h>
    #include <netdb.h>
   -#include <byteswap.h>
   +// #include <byteswap.h>
    #include <errno.h>
    #include "SysCSStream.hpp"
Index: rexxapi/common/ServiceMessage.hpp
   ===================================================================
   --- rexxapi/common/ServiceMessage.hpp    (revision 3424)
   +++ rexxapi/common/ServiceMessage.hpp    (working copy)
   @@ -41,6 +41,7 @@
#include "rexx.h"
    #include "ServiceException.hpp"
   +#include <sys/stat.h>
    #include "SysCSStream.hpp"
    #include "SysProcess.hpp"
Index: common/platform/unix/SysThread.cpp
   ===================================================================
   --- common/platform/unix/SysThread.cpp    (revision 3424)
   +++ common/platform/unix/SysThread.cpp    (working copy)
   @@ -48,8 +48,8 @@
#include "SysThread.hpp"
    #include <stdio.h>
   +#include <unistd.h>
-
    // attach an activity to an existing thread
    void SysThread::attachThread()
    {
   @@ -138,8 +138,10 @@
        /* scheduling on two threads controlled by the result method of
   the */
        /* message object do not work properly without an enhanced
   priority */
        pthread_getschedparam(pthread_self(), &schedpolicy, &schedparam);
   +#ifdef _POSIX_PRIORITY_SCHEDULING
        maxpri = sched_get_priority_max(schedpolicy);
        minpri = sched_get_priority_min(schedpolicy);
   +#endif
        schedparam.sched_priority = (minpri + maxpri) / 2;
#if defined(OPSYS_SUN) || defined(OPSYS_AIX43)

Unfortunately I can't really smoke test it with BSF4Rexx because BSF4Rexx does not build under 4.0 ... Rony seems to have been depending on defs like PCHAR in the OORexx include
files which I don't think are there anymore.

--
Jack J. Woehr            # "Self-delusion is
http://www.well.com/~jax #  half the battle!"
http://www.softwoehr.com #  - Zippy the Pinhead

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to