Commit de135c8e authored by ben's avatar ben

Added LARGEFILE defines for >2GB file support


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@203 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 22d2c9d4
......@@ -16,7 +16,10 @@ setup(name="rdiff-backup",
author_email="bescoto@stanford.edu",
url="http://rdiff-backup.stanford.edu",
packages = ['rdiff_backup'],
ext_modules = [Extension("rdiff_backup.C", ["cmodule.c"]),
ext_modules = [Extension("rdiff_backup.C", ["cmodule.c"],
define_macros=[("_LARGEFILE_SOURCE", 1),
("_FILE_OFFSET_BITS", 64),
("_LARGE_FILES", 1)]),
Extension("rdiff_backup._librsync",
["_librsyncmodule.c"],
libraries=["rsync"])],
......
......@@ -32,8 +32,6 @@
# define STRUCT_STAT struct stat
#endif
extern int lstat(const char *, struct stat *);
static PyObject *UnknownFileTypeError;
static PyObject *c_make_file_dict(PyObject *self, PyObject *args);
static PyObject *long2str(PyObject *self, PyObject *args);
......
......@@ -9,7 +9,10 @@ sys.argv.append("build")
setup(name="CModule",
version="0.9.0",
description="rdiff-backup's C component",
ext_modules=[Extension("C", ["cmodule.c"]),
ext_modules=[Extension("C", ["cmodule.c"],
define_macros=[("_LARGEFILE_SOURCE", 1),
("_FILE_OFFSET_BITS", 64),
("_LARGE_FILES", 1)]),
Extension("_librsync",
["_librsyncmodule.c"],
libraries=["rsync"])])
......
......@@ -32,8 +32,6 @@
# define STRUCT_STAT struct stat
#endif
extern int lstat(const char *, struct stat *);
static PyObject *UnknownFileTypeError;
static PyObject *c_make_file_dict(PyObject *self, PyObject *args);
static PyObject *long2str(PyObject *self, PyObject *args);
......
......@@ -9,7 +9,10 @@ sys.argv.append("build")
setup(name="CModule",
version="0.9.0",
description="rdiff-backup's C component",
ext_modules=[Extension("C", ["cmodule.c"]),
ext_modules=[Extension("C", ["cmodule.c"],
define_macros=[("_LARGEFILE_SOURCE", 1),
("_FILE_OFFSET_BITS", 64),
("_LARGE_FILES", 1)]),
Extension("_librsync",
["_librsyncmodule.c"],
libraries=["rsync"])])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment