From: Rob Browning Date: Fri, 26 Nov 2010 22:56:52 +0000 (-0600) Subject: Also check defined(_ATFILE_SOURCE) in utimensat() guard. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=aab17dc28817c86bcdae8bbfaba7ae27b2d9de97;p=packages%2Fb%2Fbup.git Also check defined(_ATFILE_SOURCE) in utimensat() guard. --- 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 */