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@
This commit is contained in:
david 2003-04-13 04:26:32 +00:00
parent b3bc1f4462
commit 6bb71a49be
3 changed files with 36 additions and 0 deletions

View File

@ -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

View File

@ -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.

View File

@ -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