# HG changeset patch # Parent 334015ab01f6c0e5af821c1e9bc83b8677cc0bfb libssp: Fix gets-chk.c compilation on Solaris diffdiff --git a/libssp/configure.ac b/libssp/configure.ac --- a/libssp/configure.ac +++ b/libssp/configure.ac @@ -128,6 +128,7 @@ if test x$gcc_no_link = xyes; then else AC_CHECK_FUNCS(memmove mempcpy strncpy strncat) fi +AC_CHECK_DECLS([gets]) AC_MSG_CHECKING([whether vsnprintf is usable]) AC_RUN_IFELSE([AC_LANG_PROGRAM([ diff --git a/libssp/gets-chk.c b/libssp/gets-chk.c --- a/libssp/gets-chk.c +++ b/libssp/gets-chk.c @@ -51,8 +51,7 @@ see the files COPYING3 and COPYING.RUNTI # include #endif -#if !(!defined __USE_ISOC11 \ - || (defined __cplusplus && __cplusplus <= 201103L)) +#if !HAVE_DECL_GETS extern char *gets (char *); #endif