about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e+absinthe@yhbt.net>2010-12-24 16:14:58 -0800
committerEric Wong <normalperson@yhbt.net>2010-12-24 16:11:30 -0800
commitfb001a2a1e1037597804db458a28316599fc6e83 (patch)
treeff998f851e74c87da86dc14d917cfc610db60037
parent2816f3ceaa31452f6bb67a7a7297e6795221cb35 (diff)
ruby.h doesn't seem to like being included after time.h
-rw-r--r--ext/clogger_ext/clogger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c
index e4a64b5..bc61f2a 100644
--- a/ext/clogger_ext/clogger.c
+++ b/ext/clogger_ext/clogger.c
@@ -1,5 +1,3 @@
-#define _POSIX_C_SOURCE 200112L
-#include <time.h>
 #include <ruby.h>
 #ifdef HAVE_RUBY_IO_H
 #  include <ruby/io.h>
@@ -15,6 +13,8 @@
 #ifdef HAVE_FCNTL_H
 #  include <fcntl.h>
 #endif
+#define _POSIX_C_SOURCE 200112L
+#include <time.h>
 #include "ruby_1_9_compat.h"
 
 static void clock_diff(struct timespec *a, const struct timespec *b)