commit da7c00aac2f5abc8223cf6be143baf7a8ec3960a parent aa9cfcfc494242f14098ee28a18209a154c7d58c Author: Laurent Bercot <ska-skaware@skarnet.org> Date: Wed, 27 Apr 2016 17:17:28 +0000 Help Solaris finds its own futimens() in its own ass Diffstat:
M | src/libstddjb/touch.c | | | 1 | + |
M | src/sysdeps/tryfutimens.c | | | 8 | +++++--- |
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/libstddjb/touch.c b/src/libstddjb/touch.c @@ -4,6 +4,7 @@ #ifdef SKALIBS_HASFUTIMENS +#include <skalibs/nonposix.h> #include <time.h> #include <sys/stat.h> #include <skalibs/djbunix.h> diff --git a/src/sysdeps/tryfutimens.c b/src/sysdeps/tryfutimens.c @@ -1,8 +1,10 @@ /* ISC license. */ -#include <sys/types.h> -#include <sys/stat.h> -#include <time.h> +#undef _POSIX_C_SOURCE +#undef _XOPEN_SOURCE +#ifndef __EXTENSIONS__ +#define __EXTENSIONS__ +#endif int main (void) {