Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: mozilla/nsprpub/pr/include/md/_unixos.h

Issue 12089033: Update to NSPR 4.9.5 Beta 2, part 2: actual changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mozilla/nsprpub/pr/include/md/_pth.h ('k') | mozilla/nsprpub/pr/include/md/_win95.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mozilla/nsprpub/pr/include/md/_unixos.h
===================================================================
--- mozilla/nsprpub/pr/include/md/_unixos.h (revision 179237)
+++ mozilla/nsprpub/pr/include/md/_unixos.h (working copy)
@@ -15,7 +15,7 @@
* not be redefined.
*/
#if !defined(LINUX) && !defined(__GNU__) && !defined(__GLIBC__) \
- && !defined(DARWIN) && !defined(NEXTSTEP)
+ && !defined(DARWIN)
#ifndef FD_SETSIZE
#define FD_SETSIZE 4096
#endif
@@ -147,7 +147,7 @@
#define PROT_NONE 0x0
#endif
-#if defined(DEBUG) && !defined(DARWIN) && !defined(NEXTSTEP)
+#if defined(DEBUG) && !defined(DARWIN)
#if !defined(SOLARIS)
#include <string.h> /* for memset() */
#define _MD_INIT_STACK(ts,REDZONE) \
@@ -294,9 +294,22 @@
/************************************************************************/
-#if !defined(HPUX_LW_TIMER)
+#ifdef _MD_INTERVAL_USE_GTOD
+extern PRIntervalTime _PR_UNIX_GetInterval(void);
+extern PRIntervalTime _PR_UNIX_TicksPerSecond(void);
#define _MD_INTERVAL_INIT()
+#define _MD_GET_INTERVAL _PR_UNIX_GetInterval
+#define _MD_INTERVAL_PER_SEC _PR_UNIX_TicksPerSecond
#endif
+
+#ifdef HAVE_CLOCK_MONOTONIC
+extern PRIntervalTime _PR_UNIX_GetInterval2(void);
+extern PRIntervalTime _PR_UNIX_TicksPerSecond2(void);
+#define _MD_INTERVAL_INIT()
+#define _MD_GET_INTERVAL _PR_UNIX_GetInterval2
+#define _MD_INTERVAL_PER_SEC _PR_UNIX_TicksPerSecond2
+#endif
+
#define _MD_INTERVAL_PER_MILLISEC() (_PR_MD_INTERVAL_PER_SEC() / 1000)
#define _MD_INTERVAL_PER_MICROSEC() (_PR_MD_INTERVAL_PER_SEC() / 1000000)
« no previous file with comments | « mozilla/nsprpub/pr/include/md/_pth.h ('k') | mozilla/nsprpub/pr/include/md/_win95.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698