feature macros for utimensat availability

master
Daniel Kolesa 2018-04-19 02:10:35 +02:00
parent 7cd42186a7
commit d8e2fe4f31
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@
* This file is part of libostd. See COPYING.md for futher information.
*/
/* mainly only for glibc, but it's harmless elsewhere */
#define _POSIX_C_SOURCE 200809L
#define _ATFILE_SOURCE 1
#include <cstdlib>
#include <ctime>
#include <pwd.h>