diff options
author | wtc%google.com <devnull@localhost> | 2008-07-26 17:49:39 +0000 |
---|---|---|
committer | wtc%google.com <devnull@localhost> | 2008-07-26 17:49:39 +0000 |
commit | d26d7d8cb30a5b3801762123797490e3a2d45220 (patch) | |
tree | 51208b44faca7d392502639abbb1bf7968b2e290 | |
parent | 636505d3674b3929cb7759765eeb009dcecfb45c (diff) | |
download | nspr-hg-d26d7d8cb30a5b3801762123797490e3a2d45220.tar.gz |
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
-rw-r--r-- | pr/include/md/_pth.h | 8 | ||||
-rw-r--r-- | pr/include/md/_unixos.h | 4 | ||||
-rw-r--r-- | pr/include/md/prosdep.h | 3 |
3 files changed, 10 insertions, 5 deletions
diff --git a/pr/include/md/_pth.h b/pr/include/md/_pth.h index 46c8670d..b44fd93a 100644 --- a/pr/include/md/_pth.h +++ b/pr/include/md/_pth.h @@ -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" diff --git a/pr/include/md/_unixos.h b/pr/include/md/_unixos.h index 642599bd..96c9fc9e 100644 --- a/pr/include/md/_unixos.h +++ b/pr/include/md/_unixos.h @@ -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 diff --git a/pr/include/md/prosdep.h b/pr/include/md/prosdep.h index 0de89a98..e8e36c5f 100644 --- a/pr/include/md/prosdep.h +++ b/pr/include/md/prosdep.h @@ -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 |