Index: remoting/host/remoting_me2me_host.cc |
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc |
index abda26939b3245542a784e5225c3bbb552acd8b3..aaae9dbd264bb4e4615281c94a4e4f159cfb090d 100644 |
--- a/remoting/host/remoting_me2me_host.cc |
+++ b/remoting/host/remoting_me2me_host.cc |
@@ -133,9 +133,16 @@ |
using remoting::protocol::PairingRegistry; |
using remoting::protocol::NetworkSettings; |
-#if defined(USE_REMOTING_MACOSX_INTERNAL) |
-#include "remoting/tools/internal/internal_mac-inl.h" |
-#endif |
+#if defined(OS_MACOSX) |
+ |
+// The following creates a section that tells Mac OS X that it is OK to let us |
+// inject input in the login screen. Just the name of the section is important, |
+// not its contents. |
+__attribute__((used)) |
+__attribute__((section ("__CGPreLoginApp,__cgpreloginapp"))) |
+static const char magic_section[] = ""; |
+ |
+#endif // defined(OS_MACOSX) |
namespace { |