summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.c b/error.c
index 55834a3cd8..3fcd18478d 100644
--- a/error.c
+++ b/error.c
@@ -18,6 +18,8 @@
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
+#include <errno.h>
+
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif
@@ -374,8 +376,6 @@ rb_check_typeddata(VALUE obj, const rb_data_type_t *data_type)
}
/* exception classes */
-#include <errno.h>
-
VALUE rb_eException;
VALUE rb_eSystemExit;
VALUE rb_eInterrupt;