diff --git a/content/html/document/src/nsHTMLContentSink.cpp b/content/html/document/src/nsHTMLContentSink.cpp
index a4852403c77..cbc98c798a1 100644
--- a/content/html/document/src/nsHTMLContentSink.cpp
+++ b/content/html/document/src/nsHTMLContentSink.cpp
@@ -101,7 +101,9 @@
#include "nsICharsetAlias.h"
#include "nsIChannel.h"
#include "nsIHttpChannel.h"
+#ifndef XP_MAC
#include "nsCPrefetchService.h"
+#endif
#include "nsIWebShell.h"
#include "nsIDocShell.h"
@@ -4431,6 +4433,7 @@ HTMLContentSink::ProcessStyleLink(nsIHTMLContent* aElement,
void
HTMLContentSink::ProcessNextLink(const nsAString &aHref)
{
+#ifndef XP_MAC
nsCOMPtr prefetchService(
do_GetService(NS_PREFETCHSERVICE_CONTRACTID));
if (prefetchService) {
@@ -4445,6 +4448,7 @@ HTMLContentSink::ProcessNextLink(const nsAString &aHref)
if (uri)
prefetchService->PrefetchURI(uri);
}
+#endif
}
nsresult