Patch for Solaris support, mostly ifdefs and header files, plus adds libevent configuration.

BUG=30101
TEST=compiles

Review URL: http://codereview.chromium.org/7238021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90494 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/debug/debugger_posix.cc b/base/debug/debugger_posix.cc
index bf90a0f..a1551a3 100644
--- a/base/debug/debugger_posix.cc
+++ b/base/debug/debugger_posix.cc
@@ -12,9 +12,6 @@
 #include <stdlib.h>
 #include <sys/param.h>
 #include <sys/stat.h>
-#if !defined(OS_NACL)
-#include <sys/sysctl.h>
-#endif
 #include <sys/types.h>
 #include <unistd.h>
 
@@ -29,6 +26,10 @@
 #include <AvailabilityMacros.h>
 #endif
 
+#if defined(OS_MACOSX) || defined(OS_OPENBSD) || defined(OS_FREEBSD)
+#include <sys/sysctl.h>
+#endif
+
 #include <iostream>
 
 #include "base/basictypes.h"
@@ -136,7 +137,7 @@
   return false;
 }
 
-#elif defined(OS_FREEBSD)
+#else
 
 bool BeingDebugged() {
   // TODO(benl): can we determine this under FreeBSD?