mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
29 lines
700 B
C++
29 lines
700 B
C++
$NetBSD: patch-browser_app_nsBrowserApp.cpp,v 1.2 2015/01/29 22:22:27 wiz Exp $
|
|
|
|
* Replace XP_MACOSX with XP_DARWIN as the former is not defined when
|
|
the toolkit is not cocoa.
|
|
|
|
--- browser/app/nsBrowserApp.cpp.orig 2014-05-06 22:55:09.000000000 +0000
|
|
+++ browser/app/nsBrowserApp.cpp
|
|
@@ -18,8 +18,10 @@
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
-#ifdef XP_MACOSX
|
|
+#ifdef XP_DARWIN
|
|
#include <mach/mach_time.h>
|
|
+#endif
|
|
+#ifdef MOZ_WIDGET_COCOA
|
|
#include "MacQuirks.h"
|
|
#endif
|
|
|
|
@@ -447,7 +449,7 @@ TimeStamp_Now()
|
|
}
|
|
|
|
return sGetTickCount64() * freq.QuadPart;
|
|
-#elif defined(XP_MACOSX)
|
|
+#elif defined(XP_DARWIN)
|
|
return mach_absolute_time();
|
|
#elif defined(HAVE_CLOCK_MONOTONIC)
|
|
struct timespec ts;
|