Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move non-Windows header into conditional.

  • Loading branch information...
commit fbe1d9e19bc2744ca069da700d5a8db0c17565c9 1 parent 1d21c28
@brixen brixen authored
Showing with 9 additions and 7 deletions.
  1. +5 −4 vm/builtin/system.cpp
  2. +4 −3 vm/environment.cpp
View
9 vm/builtin/system.cpp
@@ -9,15 +9,16 @@
#include "vm/config.h"
-#ifndef RBX_WINDOWS
+#ifdef RBX_WINDOWS
+#include "windows_compat.h"
+#else
#include <sys/resource.h>
#include <sys/wait.h>
#include <pwd.h>
+#include <dlfcn.h>
#endif
-#include <unistd.h>
-
-#include <dlfcn.h>
+#include <unistd.h>
#include "vm/call_frame.hpp"
#include "vm/helpers.hpp"
View
7 vm/environment.cpp
@@ -42,14 +42,15 @@
#include <fstream>
#include <sstream>
#include <string>
-#ifndef RBX_WINDOWS
+#ifdef RBX_WINDOWS
+#include "windows_compat.h"
+#else
#include <sys/utsname.h>
+#include <dlfcn.h>
#endif
-#include "windows_compat.h"
#include <fcntl.h>
#include <unistd.h>
#include <sys/param.h>
-#include <dlfcn.h>
namespace rubinius {
Please sign in to comment.
Something went wrong with that request. Please try again.