summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-24 12:26:06 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-24 12:26:06 +0000
commit8f5865e25163ca82b9608af58498e72f038f593f (patch)
tree1b872d7243ce63592d2e4a2a7c40d672a84c4490 /error.c
parent54370de9f4c01ba43752057b602bafc5be293665 (diff)
* error.c: include errno.h at beginning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;