diff --git a/ChangeLog b/ChangeLog index 82dc9d0552..770e6dfd37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Aug 10 22:24:24 2008 Yusuke Endoh + + * encoding.c: include util.h. [ruby-dev:35715] + + * common.mk: ditto. + Sun Aug 10 20:59:54 2008 Tanaka Akira * transcode_data.h (rb_transcoding): new field: flags. diff --git a/common.mk b/common.mk index 79ebf92c1d..3681c7195a 100644 --- a/common.mk +++ b/common.mk @@ -449,7 +449,7 @@ dmyext.$(OBJEXT): {$(VPATH)}dmyext.c dmyencoding.$(OBJEXT): {$(VPATH)}dmyencoding.c \ {$(VPATH)}encoding.c $(RUBY_H_INCLUDES) {$(VPATH)}st.h \ {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h {$(VPATH)}regenc.h -encoding.$(OBJEXT): dmyencoding.$(OBJEXT) +encoding.$(OBJEXT): dmyencoding.$(OBJEXT) {$(VPATH)}util.h enum.$(OBJEXT): {$(VPATH)}enum.c $(RUBY_H_INCLUDES) \ {$(VPATH)}st.h {$(VPATH)}node.h {$(VPATH)}util.h enumerator.$(OBJEXT): {$(VPATH)}enumerator.c $(RUBY_H_INCLUDES) \ diff --git a/encoding.c b/encoding.c index e0f2bc9154..a6d0fcd3d7 100644 --- a/encoding.c +++ b/encoding.c @@ -16,6 +16,7 @@ #ifdef HAVE_LANGINFO_H #include #endif +#include "ruby/util.h" static ID id_encoding, id_base_encoding; VALUE rb_cEncoding;