| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- Index: nsprpub/pr/include/md/_freebsd.h
- --- nsprpub/pr/include/md/_freebsd.h.orig Sat Feb 16 09:12:55 2002
- +++ nsprpub/pr/include/md/_freebsd.h Thu Aug 8 19:31:23 2002
- @@ -40,6 +40,7 @@
- #if __FreeBSD__ >= 2
- #include <osreldate.h> /* for __FreeBSD_version */
- #endif
- +#include <sys/param.h>
- #include <sys/syscall.h>
-
- #define PR_LINKER_ARCH "freebsd"
- Index: nsprpub/pr/include/md/_pth.h
- --- nsprpub/pr/include/md/_pth.h.orig 2002-12-12 00:10:39 +0100
- +++ nsprpub/pr/include/md/_pth.h 2004-12-27 19:52:48 +0100
- @@ -90,7 +90,7 @@
- #define _PT_PTHREAD_MUTEXATTR_INIT pthread_mutexattr_init
- #define _PT_PTHREAD_MUTEXATTR_DESTROY pthread_mutexattr_destroy
- #define _PT_PTHREAD_MUTEX_INIT(m, a) pthread_mutex_init(&(m), &(a))
- -#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (EBUSY == pthread_mutex_trylock(&(m)))
- +#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (0 != pthread_mutex_trylock(&(m)))
- #if defined(DARWIN)
- #define _PT_PTHREAD_CONDATTR_INIT(x) 0
- #else
- Index: nsprpub/pr/src/md/unix/unix.c
- --- nsprpub/pr/src/md/unix/unix.c.orig Sat May 31 18:06:04 2003
- +++ nsprpub/pr/src/md/unix/unix.c Sat May 31 18:04:43 2003
- @@ -65,7 +65,8 @@
- * PRInt32* pointer to a _PRSockLen_t* pointer.
- */
- #if defined(HAVE_SOCKLEN_T) \
- - || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2)
- + || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) \
- + || defined(FREEBSD)
- #define _PRSockLen_t socklen_t
- #elif defined(IRIX) || defined(HPUX) || defined(OSF1) || defined(SOLARIS) \
- || defined(AIX4_1) || defined(LINUX) || defined(SONY) \
- @@ -73,7 +74,7 @@
- || defined(SUNOS4) || defined(NCR) || defined(DARWIN) \
- || defined(NEXTSTEP) || defined(QNX)
- #define _PRSockLen_t int
- -#elif (defined(AIX) && !defined(AIX4_1)) || defined(FREEBSD) \
- +#elif (defined(AIX) && !defined(AIX4_1)) \
- || defined(NETBSD) || defined(OPENBSD) || defined(UNIXWARE) \
- || defined(DGUX) || defined(VMS) || defined(NTO)
- #define _PRSockLen_t size_t
- Index: nsprpub/pr/src/pthreads/ptio.c
- --- nsprpub/pr/src/pthreads/ptio.c.orig 2003-07-15 00:12:19 +0200
- +++ nsprpub/pr/src/pthreads/ptio.c 2004-12-27 19:54:28 +0100
- @@ -189,7 +189,7 @@
- #endif
- #endif
-
- -#ifdef DARWIN
- +#if defined(DARWIN) || defined(FREEBSD)
- static PRBool _pr_ipv6_v6only_on_by_default;
- /* The IPV6_V6ONLY socket option is not defined on Mac OS X 10.1. */
- #ifndef IPV6_V6ONLY
- @@ -1154,7 +1154,7 @@
- _pr_stderr = pt_SetMethods(2, PR_DESC_FILE, PR_FALSE, PR_TRUE);
- PR_ASSERT(_pr_stdin && _pr_stdout && _pr_stderr);
-
- -#ifdef DARWIN
- +#if defined(DARWIN) || defined(FREEBSD)
- /* In Mac OS X v10.3 Panther Beta the IPV6_V6ONLY socket option
- * is turned on by default, contrary to what RFC 3493, Section
- * 5.3 says. So we have to turn it off. Find out whether we
- @@ -3462,7 +3462,7 @@
- if (osfd == -1) pt_MapError(_PR_MD_MAP_SOCKET_ERROR, errno);
- else
- {
- -#ifdef DARWIN
- +#if defined(DARWIN) || defined(FREEBSD)
- if ((domain == AF_INET6) && _pr_ipv6_v6only_on_by_default)
- {
- int on = 0;
- @@ -3470,6 +3470,17 @@
- &on, sizeof(on));
- }
- #endif
- +#if (defined(_PR_INET6_PROBE) || defined(_PR_INET6)) && \
- + defined(__FreeBSD__) && defined(IPV6_V6ONLY)
- + if (domain == PR_AF_INET6) {
- + int opt = 0;
- + if (setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY,
- + &opt, sizeof(opt))) {
- + close(osfd);
- + return NULL;
- + }
- + }
- +#endif
- fd = pt_SetMethods(osfd, ftype, PR_FALSE, PR_FALSE);
- if (fd == NULL) close(osfd);
- }
- Index: layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp
- --- layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp.orig 2005-02-04 20:01:59 +0100
- +++ layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp 2005-02-04 20:02:52 +0100
- @@ -50,6 +50,11 @@
- #include "nsRenderingContextGTK.h"
- #include <gdk/gdkx.h>
- #include <cairo.h>
- +#ifdef CAIRO_HAS_XLIB_SURFACE
- +#include <cairo-xlib.h>
- +#else
- +#error Require Cairo with Xlib backend
- +#endif
-
- /**
- * \addtogroup cairo_renderer Cairo Rendering Engine
- Index: layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp
- --- layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp.orig 2004-03-16 22:40:07 +0100
- +++ layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp 2005-02-04 20:03:40 +0100
- @@ -50,6 +50,7 @@
- #include "nsIDOMSVGRect.h"
- #include "nsSVGTypeCIDs.h"
- #include "nsIComponentManager.h"
- +#include <stdlib.h>
- #include <cairo.h>
-
- /**
- Index: config/make-jars.pl
- --- config/make-jars.pl.orig 2004-07-21 20:33:37 +0200
- +++ config/make-jars.pl 2005-04-22 20:34:14 +0200
- @@ -40,6 +40,7 @@
- last if ($arg eq "--");
- }
- my $defines = join(' ', @ARGV[ $ddindex .. $#ARGV ]);
- +splice @ARGV, $ddindex, $#ARGV;
-
- getopts("d:s:t:f:avlD:o:p:xz:");
-
|