Bug 754649: Add support for Hurd. The patch is contributed by Mike Hommey

<mh+mozilla@glandium.org>.  r=wtc.
Modified Files: _linux.cfg _pth.h uxrng.c


git-svn-id: svn://10.0.0.236/trunk@263839 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtc%google.com 2012-05-18 21:55:29 +00:00
parent abdc852811
commit 43e2d810d7
3 changed files with 3 additions and 5 deletions

View File

@ -21,6 +21,8 @@
#ifdef __FreeBSD_kernel__
#define PR_AF_INET6 28 /* same as AF_INET6 */
#elif defined(__GNU__)
#define PR_AF_INET6 26 /* same as AF_INET6 */
#else
#define PR_AF_INET6 10 /* same as AF_INET6 */
#endif

View File

@ -118,10 +118,6 @@
|| defined(NETBSD) || defined(OPENBSD) || defined(BSDI) \
|| defined(NTO) || defined(DARWIN) \
|| defined(UNIXWARE) || defined(RISCOS) || defined(SYMBIAN)
#ifdef __GNU__
/* Hurd pthreads don't have an invalid value for pthread_t. -- rmh */
#error Using Hurd pthreads
#endif
#define _PT_PTHREAD_INVALIDATE_THR_HANDLE(t) (t) = 0
#define _PT_PTHREAD_THR_HANDLE_IS_INVALID(t) (t) == 0
#define _PT_PTHREAD_COPY_THR_HANDLE(st, dt) (dt) = (st)

View File

@ -94,7 +94,7 @@ GetHighResClock(void *buf, size_t maxbytes)
#elif (defined(LINUX) || defined(FREEBSD) || defined(__FreeBSD_kernel__) \
|| defined(NETBSD) || defined(__NetBSD_kernel__) || defined(OPENBSD) \
|| defined(SYMBIAN))
|| defined(SYMBIAN) || defined(__GNU__))
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>