From aab17dc28817c86bcdae8bbfaba7ae27b2d9de97 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Fri, 26 Nov 2010 16:56:52 -0600 Subject: [PATCH] Also check defined(_ATFILE_SOURCE) in utimensat() guard. --- lib/bup/_helpers.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/bup/_helpers.c b/lib/bup/_helpers.c index c4853eb..d5de937 100644 --- a/lib/bup/_helpers.c +++ b/lib/bup/_helpers.c @@ -259,7 +259,8 @@ static PyObject *bup_set_linux_file_attr(PyObject *self, PyObject *args) #endif /* def linux */ -#if _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L +#if defined(_ATFILE_SOURCE) \ + || _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L #define HAVE_BUP_UTIMENSAT 1 static PyObject *bup_utimensat(PyObject *self, PyObject *args) @@ -331,7 +332,8 @@ static PyObject *bup_utimensat(PyObject *self, PyObject *args) Py_RETURN_TRUE; } -#endif /* _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L */ +#endif /* defined(_ATFILE_SOURCE) + || _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L */ #ifdef linux /* and likely others */ -- 2.39.2