Skip to content

Commit

Permalink
Don't compile bup_get_Linux_file_attr on systems without FS_IOC_GETFL…
Browse files Browse the repository at this point in the history
…AGS.
  • Loading branch information
dickon authored and apenwarr committed Mar 24, 2011
1 parent 8be6d5b commit 1fe7783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bup/_helpers.c
Expand Up @@ -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) static PyObject *bup_get_linux_file_attr(PyObject *self, PyObject *args)
{ {
int rc; int rc;
Expand Down Expand Up @@ -899,7 +899,7 @@ static PyMethodDef helper_methods[] = {
"open() the given filename for read with O_NOATIME if possible" }, "open() the given filename for read with O_NOATIME if possible" },
{ "fadvise_done", fadvise_done, METH_VARARGS, { "fadvise_done", fadvise_done, METH_VARARGS,
"Inform the kernel that we're finished with earlier parts of a file" }, "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, { "get_linux_file_attr", bup_get_linux_file_attr, METH_VARARGS,
"Return the Linux attributes for the given file." }, "Return the Linux attributes for the given file." },
{ "set_linux_file_attr", bup_set_linux_file_attr, METH_VARARGS, { "set_linux_file_attr", bup_set_linux_file_attr, METH_VARARGS,
Expand Down

0 comments on commit 1fe7783

Please sign in to comment.