]> arthur.barton.de Git - bup.git/commitdiff
Also check defined(_ATFILE_SOURCE) in utimensat() guard.
authorRob Browning <rlb@defaultvalue.org>
Fri, 26 Nov 2010 22:56:52 +0000 (16:56 -0600)
committerRob Browning <rlb@defaultvalue.org>
Fri, 26 Nov 2010 22:56:52 +0000 (16:56 -0600)
lib/bup/_helpers.c

index c4853ebdc1ca931edfcf1b839d77d0b29dda0ebb..d5de937d92e54804d5aff4fc723bafaa0fe7bc4b 100644 (file)
@@ -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 */