pkgsrc/www/firefox31/patches/patch-xpcom_build_PoisonIOInterposer.h
ryoon f9e1049018 Import firefox31-31.2.0 as www/firefox31.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems.

It is fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.

Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
2014-11-03 12:18:31 +00:00

37 lines
1.2 KiB
C

$NetBSD: patch-xpcom_build_PoisonIOInterposer.h,v 1.1 2014/11/03 12:18:32 ryoon Exp $
Replace XP_MACOSX with XP_DARWIN as the former is not defined when
the toolkit is not cocoa.
--- xpcom/build/PoisonIOInterposer.h.orig 2014-05-29 23:31:50.000000000 +0000
+++ xpcom/build/PoisonIOInterposer.h
@@ -44,7 +44,7 @@ bool IsDebugFile(intptr_t aFileID);
*/
void InitPoisonIOInterposer();
-#ifdef XP_MACOSX
+#ifdef XP_DARWIN
/**
* Check that writes are dirty before reporting I/O (Mac OS X only)
* This is necessary for late-write checks on Mac OS X, but reading the buffer
@@ -52,7 +52,7 @@ void InitPoisonIOInterposer();
* to do this for everything else that uses
*/
void OnlyReportDirtyWrites();
-#endif /* XP_MACOSX */
+#endif /* XP_DARWIN */
/**
* Clear IO poisoning, this is only safe to do on the main-thread when no other
@@ -70,9 +70,9 @@ namespace mozilla {
inline bool IsDebugFile(intptr_t aFileID){ return true; }
inline void InitPoisonIOInterposer(){}
inline void ClearPoisonIOInterposer(){}
-#ifdef XP_MACOSX
+#ifdef XP_DARWIN
inline void OnlyReportDirtyWrites(){}
-#endif /* XP_MACOSX */
+#endif /* XP_DARWIN */
} // namespace mozilla
#endif /* __cplusplus */