From: Rob Browning Date: Fri, 12 Nov 2010 05:17:57 +0000 (-0600) Subject: Always define _have_ns_fs_timestamps (True or False). X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3d72ab84b282bc5299f4320120ab4708c6f179e8;p=packages%2Fb%2Fbup.git Always define _have_ns_fs_timestamps (True or False). --- 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 }