summaryrefslogtreecommitdiff
path: root/ruby-runner.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-28 07:40:57 (GMT)
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-28 07:51:48 (GMT)
commitb11d739444e312e3284dc5daf8354a3067606f2d (patch)
tree6668f7daf6a82388ebaca4cdbbd33bbeed9ad01b /ruby-runner.c
parenta506b7f35a65a1ecee09fbff0372dc354255dd77 (diff)
Fix warnings
`_FILE_OFFSET_BITS` should be defined before system headers.
Diffstat (limited to 'ruby-runner.c')
-rw-r--r--ruby-runner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby-runner.c b/ruby-runner.c
index c991178..d41ba27 100644
--- a/ruby-runner.c
+++ b/ruby-runner.c
@@ -1,4 +1,5 @@
#define _POSIX_C_SOURCE 200809L
+#include "ruby/config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -7,7 +8,6 @@
#include <sys/stat.h>
#include "ruby-runner.h"
-#include "ruby/config.h"
#ifdef MAKE_MJIT_BUILD_DIR
const char MJIT_HEADER[] = BUILDDIR "/" MJIT_MIN_HEADER;