From 6bb71a49beb0ba8cea36b892033f65c7eb93176f Mon Sep 17 00:00:00 2001 From: david Date: Sun, 13 Apr 2003 04:26:32 +0000 Subject: [PATCH] nsprpub/pr/include/md/_openbsd.cfg: fix a typo nsprpub/pr/src/misc/prnetdb.c: add OpenBSD to the list of OSes with getifaddrs() nsprpub/pr/src/misc/prtime.c: OpenBSD's struct tm has two additional fields: tm_zone and tm_gmtoff. ok pvalchev@ --- .../patches/patch-nsprpub_pr_include_md__openbsd_cfg | 12 ++++++++++++ .../patches/patch-nsprpub_pr_src_misc_prnetdb_c | 12 ++++++++++++ .../patches/patch-nsprpub_pr_src_misc_prtime_c | 12 ++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 www/mozilla/patches/patch-nsprpub_pr_include_md__openbsd_cfg create mode 100644 www/mozilla/patches/patch-nsprpub_pr_src_misc_prnetdb_c create mode 100644 www/mozilla/patches/patch-nsprpub_pr_src_misc_prtime_c diff --git a/www/mozilla/patches/patch-nsprpub_pr_include_md__openbsd_cfg b/www/mozilla/patches/patch-nsprpub_pr_include_md__openbsd_cfg new file mode 100644 index 00000000000..d420edd183e --- /dev/null +++ b/www/mozilla/patches/patch-nsprpub_pr_include_md__openbsd_cfg @@ -0,0 +1,12 @@ +$OpenBSD: patch-nsprpub_pr_include_md__openbsd_cfg,v 1.1 2003/04/13 04:26:32 david Exp $ +--- nsprpub/pr/include/md/_openbsd.cfg.orig Tue Jun 20 16:23:14 2000 ++++ nsprpub/pr/include/md/_openbsd.cfg Sat Apr 12 01:48:36 2003 +@@ -93,7 +93,7 @@ + + #elif defined(__sparc__) + +-#undef IS_LITTLE_ENDIAN 1 ++#undef IS_LITTLE_ENDIAN + #define IS_BIG_ENDIAN 1 + #define HAVE_LONG_LONG + #define HAVE_ALIGNED_DOUBLES diff --git a/www/mozilla/patches/patch-nsprpub_pr_src_misc_prnetdb_c b/www/mozilla/patches/patch-nsprpub_pr_src_misc_prnetdb_c new file mode 100644 index 00000000000..82627a38375 --- /dev/null +++ b/www/mozilla/patches/patch-nsprpub_pr_src_misc_prnetdb_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-nsprpub_pr_src_misc_prnetdb_c,v 1.1 2003/04/13 04:26:32 david Exp $ +--- nsprpub/pr/src/misc/prnetdb.c.orig Tue Feb 25 09:08:45 2003 ++++ nsprpub/pr/src/misc/prnetdb.c Sat Apr 12 01:48:36 2003 +@@ -321,7 +321,7 @@ _pr_QueryNetIfs(void) + } + + #elif (defined(DARWIN) && defined(HAVE_GETIFADDRS)) || defined(FREEBSD) \ +- || defined(NETBSD) ++ || defined(NETBSD) || defined(OPENBSD) + + /* + * Use the BSD getifaddrs function. diff --git a/www/mozilla/patches/patch-nsprpub_pr_src_misc_prtime_c b/www/mozilla/patches/patch-nsprpub_pr_src_misc_prtime_c new file mode 100644 index 00000000000..cce3f2b1e5b --- /dev/null +++ b/www/mozilla/patches/patch-nsprpub_pr_src_misc_prtime_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-nsprpub_pr_src_misc_prtime_c,v 1.1 2003/04/13 04:26:32 david Exp $ +--- nsprpub/pr/src/misc/prtime.c.orig Wed Feb 26 18:01:02 2003 ++++ nsprpub/pr/src/misc/prtime.c Sat Apr 12 01:48:36 2003 +@@ -1666,7 +1666,7 @@ PR_FormatTime(char *buf, int buflen, con + */ + + #if defined(SUNOS4) || (__GLIBC__ >= 2) || defined(XP_BEOS) \ +- || defined(NETBSD) ++ || defined(NETBSD) || defined(OPENBSD) + a.tm_zone = NULL; + a.tm_gmtoff = tm->tm_params.tp_gmt_offset + tm->tm_params.tp_dst_offset; + #endif