From 9565d19ba2469159ca0979fce967dc8852252108 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sun, 15 Nov 2015 21:06:17 +0000 Subject: Define _DEFAULT_SOURCE when defining _BSD_SOURCE. _BSD_SOURCE has been deprecated in favor of _DEFAULT_SOURCE but both can remain defined for backwards-compatibility. --- tests/utimens_nofollow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/utimens_nofollow.c b/tests/utimens_nofollow.c index 02fcf58..1941c56 100644 --- a/tests/utimens_nofollow.c +++ b/tests/utimens_nofollow.c @@ -1,5 +1,8 @@ -#define _BSD_SOURCE /* For atoll and lutimes */ +/* For atoll and lutimes */ +#define _BSD_SOURCE +/* The new non-deprecated version of _BSD_SOURCE */ +#define _DEFAULT_SOURCE #include #include -- cgit v1.2.3