diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/curses/curses.c | 6 | ||||
-rw-r--r-- | ext/iconv/extconf.rb | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c index 106c43da4c..0408fbd6bc 100644 --- a/ext/curses/curses.c +++ b/ext/curses/curses.c @@ -21,7 +21,11 @@ #elif defined(HAVE_NCURSES_CURSES_H) # include <ncurses/curses.h> #elif defined(HAVE_CURSES_COLR_CURSES_H) -# include <varargs.h> +# ifdef HAVE_STDARG_PROTOTYPES +# include <stdarg.h> +# else +# include <varargs.h> +# endif # include <curses_colr/curses.h> #else # include <curses.h> diff --git a/ext/iconv/extconf.rb b/ext/iconv/extconf.rb index 36cd60ed15..73174a17f2 100644 --- a/ext/iconv/extconf.rb +++ b/ext/iconv/extconf.rb @@ -20,7 +20,7 @@ test(iconv_t cd, char **inptr, size_t *inlen, char **outptr, size_t *outlen) else $defs.push('-DICONV_INPTR_CAST="(char **)"') end - have_library("iconv") + have_library("iconv", "iconv") if conf prefix = '$(srcdir)' prefix = $nmake ? "{#{prefix}}" : "#{prefix}/" |