[PATCH v2 1/7] common: add scoped_fd
Yao Qi
qiyaoltc@gmail.com
Wed Feb 14 15:22:00 GMT 2018
On Tue, Feb 13, 2018 at 5:28 PM, Metzger, Markus T
<markus.t.metzger@intel.com> wrote:
>
> This is supposed to be a glibc function. But it is guarded by some feature macros.
> Quote from mkstemp(3): "
>
> mkstemp():
> _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
> || /* Since glibc 2.12: */ _POSIX_C_SOURCE >= 200112L
>
> mkostemp(): _GNU_SOURCE
> mkstemps(): _BSD_SOURCE || _SVID_SOURCE
> mkostemps(): _GNU_SOURCE
> "
>
> Maybe the newer compiler is setting some macros automatically that the older compiler doesn't set.
> Could you try setting, say, _POSIX_C_SOURCE or try using mkostemp() instead of mkstemp()?
>
None of them works with my i686-w64-mingw32-g++ 4.8.2. :(
> If that doesn't help, I'll try to find a Ubuntu 14.04 to reproduce the issue.
>
--
Yao (齐尧)
More information about the Gdb-patches
mailing list