From: Dickon Reed Date: Thu, 24 Mar 2011 09:24:01 +0000 (+0000) Subject: Don't compile bup_get_Linux_file_attr on systems without FS_IOC_GETFLAGS. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1fe7783a2e8b16eefddff0abe1759769e8ad72b5;p=packages%2Fb%2Fbup.git Don't compile bup_get_Linux_file_attr on systems without FS_IOC_GETFLAGS. --- diff --git a/lib/bup/_helpers.c b/lib/bup/_helpers.c index b60b11a..61b73f7 100644 --- a/lib/bup/_helpers.c +++ b/lib/bup/_helpers.c @@ -630,7 +630,7 @@ static PyObject *fadvise_done(PyObject *self, PyObject *args) } -#ifdef linux +#if defined(linux) && defined(FS_IOC_GETFLAGS) static PyObject *bup_get_linux_file_attr(PyObject *self, PyObject *args) { int rc; @@ -899,7 +899,7 @@ static PyMethodDef helper_methods[] = { "open() the given filename for read with O_NOATIME if possible" }, { "fadvise_done", fadvise_done, METH_VARARGS, "Inform the kernel that we're finished with earlier parts of a file" }, -#ifdef linux +#if defined(linux) && defined(FS_IOC_GETFLAGS) { "get_linux_file_attr", bup_get_linux_file_attr, METH_VARARGS, "Return the Linux attributes for the given file." }, { "set_linux_file_attr", bup_set_linux_file_attr, METH_VARARGS,