diff options
author | jilles <jilles@FreeBSD.org> | 2015-01-24 15:49:40 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2015-01-24 15:49:40 +0000 |
commit | 9dbba1ddabdba6f04969e6672a75762073b2babb (patch) | |
tree | 3e6440e6d98050060ec127398befe47ce218aa1d | |
parent | 19d04ba8a14674ace732db65fc7c6a6367e94854 (diff) | |
download | FreeBSD-src-9dbba1ddabdba6f04969e6672a75762073b2babb.zip FreeBSD-src-9dbba1ddabdba6f04969e6672a75762073b2babb.tar.gz |
Enable utimensat tests from NetBSD.
As with other tests from c063, a required #include <sys/stat.h> was missing.
-rw-r--r-- | contrib/netbsd-tests/lib/libc/c063/t_utimensat.c | 3 | ||||
-rw-r--r-- | lib/libc/tests/c063/Makefile | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/contrib/netbsd-tests/lib/libc/c063/t_utimensat.c b/contrib/netbsd-tests/lib/libc/c063/t_utimensat.c index 9f21fd6..bbfa28b 100644 --- a/contrib/netbsd-tests/lib/libc/c063/t_utimensat.c +++ b/contrib/netbsd-tests/lib/libc/c063/t_utimensat.c @@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_utimensat.c,v 1.5 2013/03/17 04:46:06 jmmv Exp $"); #include <string.h> #include <unistd.h> #include <sys/param.h> +#ifdef __FreeBSD__ +#include <sys/stat.h> +#endif #include <sys/time.h> #define DIR "dir" diff --git a/lib/libc/tests/c063/Makefile b/lib/libc/tests/c063/Makefile index 0b8f3b0..5f4e1ca 100644 --- a/lib/libc/tests/c063/Makefile +++ b/lib/libc/tests/c063/Makefile @@ -2,7 +2,7 @@ TESTSDIR= ${TESTSBASE}/lib/libc/c063 -#TODO: t_o_search, t_utimensat +#TODO: t_o_search NETBSD_ATF_TESTS_C= faccessat NETBSD_ATF_TESTS_C+= fchmodat @@ -18,6 +18,7 @@ NETBSD_ATF_TESTS_C+= readlinkat NETBSD_ATF_TESTS_C+= renameat NETBSD_ATF_TESTS_C+= symlinkat NETBSD_ATF_TESTS_C+= unlinkat +NETBSD_ATF_TESTS_C+= utimensat CFLAGS+= -D_INCOMPLETE_XOPEN_C063 |