Bug 432430:More header file changes required for the Symbian OS port. The

patch is contributed by Harry Li <harry.li@pagefreedom.org>.  r=wtc.
Modified Files: _pth.h _unixos.h prosdep.h
This commit is contained in:
wtc%google.com 2008-07-26 17:49:39 +00:00
Родитель ebfea2dbc3
Коммит e1bcb2a130
3 изменённых файлов: 10 добавлений и 5 удалений

Просмотреть файл

@ -147,7 +147,7 @@
|| defined(HPUX) || defined(FREEBSD) \
|| defined(NETBSD) || defined(OPENBSD) || defined(BSDI) \
|| defined(VMS) || defined(NTO) || defined(DARWIN) \
|| defined(UNIXWARE) || defined(RISCOS)
|| defined(UNIXWARE) || defined(RISCOS) || defined(SYMBIAN)
#ifdef __GNU__
/* Hurd pthreads don't have an invalid value for pthread_t. -- rmh */
#error Using Hurd pthreads
@ -204,7 +204,7 @@
|| defined(LINUX) || defined(__GNU__)|| defined(__GLIBC__) \
|| defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) \
|| defined(BSDI) || defined(VMS) || defined(UNIXWARE) \
|| defined(DARWIN)
|| defined(DARWIN) || defined(SYMBIAN)
#define PT_NO_SIGTIMEDWAIT
#endif
@ -235,7 +235,7 @@
#endif /* defined(_PR_DCETHREADS) */
#elif defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \
|| defined(FREEBSD)
|| defined(FREEBSD) || defined(SYMBIAN)
#define PT_PRIO_MIN sched_get_priority_min(SCHED_OTHER)
#define PT_PRIO_MAX sched_get_priority_max(SCHED_OTHER)
#elif defined(NTO)
@ -295,7 +295,7 @@ extern int (*_PT_aix_yield_fcn)();
|| defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \
|| defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) \
|| defined(BSDI) || defined(NTO) || defined(DARWIN) \
|| defined(UNIXWARE) || defined(RISCOS)
|| defined(UNIXWARE) || defined(RISCOS) || defined(SYMBIAN)
#define _PT_PTHREAD_YIELD() sched_yield()
#else
#error "Need to define _PT_PTHREAD_YIELD for this platform"

Просмотреть файл

@ -68,6 +68,8 @@
*
* In The Single UNIX(R) Specification, Version 2,
* the header file for select() is <sys/time.h>.
* In Version 3, the header file for select() is
* changed to <sys/select.h>.
*
* fd_set is defined in <sys/types.h>. Usually
* <sys/time.h> includes <sys/types.h>, but on some
@ -76,7 +78,7 @@
*/
#include <sys/time.h>
#include <sys/types.h>
#if defined(AIX) /* Only pre-4.2 AIX needs it, but for simplicity... */
#if defined(AIX) || defined(SYMBIAN)
#include <sys/select.h>
#endif

Просмотреть файл

@ -141,6 +141,9 @@ PR_BEGIN_EXTERN_C
#elif defined(RISCOS)
#include "md/_riscos.h"
#elif defined(SYMBIAN)
#include "md/_symbian.h"
#else
#error unknown Unix flavor