Index: include/cstdio =================================================================== --- include/cstdio +++ include/cstdio @@ -152,7 +152,8 @@ #ifndef _LIBCPP_HAS_NO_STDIN using ::getchar; -#if _LIBCPP_STD_VER <= 11 && !defined(_LIBCPP_MSVCRT) +#if _LIBCPP_STD_VER <= 11 && !defined(_LIBCPP_MSVCRT) && \ + !(defined(__FreeBSD__) && __FreeBSD__ >= 13) using ::gets; #endif using ::scanf;