diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-11-21 23:16:00 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-11-21 23:16:00 +0000 |
commit | 8b4df8ece93ddc4e2fb685905461c1ed27b22295 (patch) | |
tree | 3df0f6ed433393d1714384769324ed77b6a5061a | |
parent | f020550fc802f299fdcdec695ac80d53ef3d24d9 (diff) | |
download | kgio-8b4df8ece93ddc4e2fb685905461c1ed27b22295.tar.gz |
errno.h is not guaranteed to be included in existing headers, so we need to #include it to ensure errno and friends are usable. Thanks to stuart on the kgio mailing list for noticing ref: <062571308.133355.1353536890665.JavaMail.sas1@172.29.251.236>
-rw-r--r-- | ext/kgio/tryopen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/kgio/tryopen.c b/ext/kgio/tryopen.c index f8044a5..0ee6a54 100644 --- a/ext/kgio/tryopen.c +++ b/ext/kgio/tryopen.c @@ -14,6 +14,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include <errno.h> #include "set_file_path.h" #include "ancient_ruby.h" |