PATCH #2
omniorb@orl.co.uk
omniorb@orl.co.uk
Thu, 22 May 1997 17:00:25 +0100
The following is a patch against the 2.2.0 distribution.
**** This patch is only necessary if you have experienced problems in
compiling the source on Linux. *****
-------------- cut here --------------------------
*** src/lib/omnithread/posix.cc Tue May 6 16:58:40 1997
--- ../latest/src/lib/omnithread/posix.cc Thu May 22 13:36:05 1997
***************
*** 50,56 ****
#include <time.h>
#include "omnithread.h"
! #ifdef __linux__
#include <pthread/mit/sys/timers.h>
#endif
--- 50,56 ----
#include <time.h>
#include "omnithread.h"
! #if defined(__linux__) && defined(_MIT_POSIX_THREADS)
#include <pthread/mit/sys/timers.h>
#endif
-------------- end -------------------------------
Typo in /usr/include/sched.h
----------------------------
In some linux distributions, e.g. RedHat 4.1, there is a typo in
/usr/include/sched.h which would cause an error when compiling omniORB2.
If you see this error, apply the following patch:
*** sched.h Thu May 22 13:49:34 1997
--- sched.h.patched Thu May 22 13:49:47 1997
***************
*** 33,39 ****
extern int sched_getscheduler __P((pid_t __pid));
extern int sched_yield __P((void));
extern int sched_get_priority_max __P((int __policy));
! extern int sched_get_priority_min _P((int __policy));
extern int sched_rr_get_interval __P((pid_t __pid,
struct timespec *interval));
--- 33,39 ----
extern int sched_getscheduler __P((pid_t __pid));
extern int sched_yield __P((void));
extern int sched_get_priority_max __P((int __policy));
! extern int sched_get_priority_min __P((int __policy));
extern int sched_rr_get_interval __P((pid_t __pid,
struct timespec *interval));
--
E-mail: S.Lo@orl.co.uk | Olivetti & Oracle Research Lab
| 24a Trumpington Street
Tel: +44 223 343000 | Cambridge CB2 1QA
Fax: +44 223 313542 | ENGLAND