From 3d72ab84b282bc5299f4320120ab4708c6f179e8 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Thu, 11 Nov 2010 23:17:57 -0600 Subject: [PATCH] Always define _have_ns_fs_timestamps (True or False). --- lib/bup/_helpers.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/bup/_helpers.c b/lib/bup/_helpers.c index 30f11cf..c4853eb 100644 --- a/lib/bup/_helpers.c +++ b/lib/bup/_helpers.c @@ -498,6 +498,10 @@ PyMODINIT_FUNC init_helpers(void) Py_BuildValue("i", AT_SYMLINK_NOFOLLOW)); #endif #ifdef HAVE_BUP_STAT - PyModule_AddObject(m, "_have_ns_fs_timestamps", Py_BuildValue("i", 1)); + Py_INCREF(Py_True); + PyModule_AddObject(m, "_have_ns_fs_timestamps", Py_True); +#else + Py_INCREF(Py_False); + PyModule_AddObject(m, "_have_ns_fs_timestamps", Py_False); #endif } -- 2.39.2