On 20/10/2020 05:14, Lukasz Majewski wrote: >> diff --git a/include/features.h b/include/features.h >> index f3e62d3362..aec149ed10 100644 >> --- a/include/features.h >> +++ b/include/features.h >> @@ -143,6 +143,7 @@ >> #undef __GLIBC_USE_ISOC2X >> #undef __GLIBC_USE_DEPRECATED_GETS >> #undef __GLIBC_USE_DEPRECATED_SCANF >> +#undef __GLIBC_USE_DEPRECATED_FTIME >> >> /* Suppress kernel-name space pollution unless user expressedly asks >> for it. */ >> @@ -438,6 +439,15 @@ >> # define __GLIBC_USE_DEPRECATED_SCANF 0 >> #endif >> >> +/* The function 'ftime' appeared in Version 7 AT&T UNIX, it was >> marked >> + as LEGACY on IEEE 1003.1-2004, and removed on IEEE 1003.1-2008. >> */ +#if (defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) <= 200112L) >> \ >> + || defined _XOPEN_SOURCE_EXTENDED >> +# define __GLIBC_USE_DEPRECATED_FTIME 1 >> +#else >> +# define __GLIBC_USE_DEPRECATED_FTIME 0 >> +#endif > > Am I right that we only export the struct timeb when program, which > links to glibc indicates that some older POSIX standard will be used? Yes, although as Szabolcs has pointed out-D_GNU_SOURCE implies _XOPEN_SOURCE_EXTENDED and this will be exported.