Index: configure --- configure.orig +++ configure @@ -350,6 +350,9 @@ case "${ostype}" in darwin) defconfigh "_DARWIN_C_SOURCE" ;; + openbsd) + defconfigh "_BSD_SOURCE" + ;; sunos) defconfigh "__EXTENSIONS__" ;; @@ -746,6 +749,7 @@ END checking "for ${i%:*}" cat >"${tempsrc}" < #if HAVE_CURSES_H #include #elif HAVE_NCURSES_H @@ -756,8 +760,6 @@ ${confighdefs} #include #endif #include <${i%:*}> -int putchar(int); - int main(void) { /* Undeclared identifiers are a syntax error in C99, but many compilers assume * implicit declarations when they appear in a function call. We force compilers