
Don't use O_LARGEFILE, it's not standard and it shouldn't be needed. It makes
BSDs choke.

---

 cur-root/bindings/python/libjio.c |    1 -
 cur-root/check.c                  |    4 ++--
 cur-root/trans.c                  |    2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff -puN trans.c~always_O_LARGEFILE trans.c
--- cur/trans.c~always_O_LARGEFILE	2004-09-08 13:30:55.000000000 -0300
+++ cur-root/trans.c	2004-09-14 02:05:21.465871712 -0300
@@ -209,7 +209,7 @@ ssize_t jtrans_commit(struct jtrans *ts)
 	/* open the transaction file */
 	if (!get_jtfile(ts->fs->name, id, name))
 		goto exit;
-	fd = open(name, O_RDWR | O_CREAT | O_TRUNC | O_LARGEFILE, 0600);
+	fd = open(name, O_RDWR | O_CREAT | O_TRUNC, 0600);
 	if (fd < 0)
 		goto exit;
 
diff -puN check.c~always_O_LARGEFILE check.c
--- cur/check.c~always_O_LARGEFILE	2004-09-14 02:05:25.407272528 -0300
+++ cur-root/check.c	2004-09-14 02:05:38.805235728 -0300
@@ -126,7 +126,7 @@ int jfsck(const char *name, struct jfsck
 	res->apply_error = 0;
 	res->reapplied = 0;
 
-	fs.fd = open(name, O_RDWR | O_SYNC | O_LARGEFILE);
+	fs.fd = open(name, O_RDWR | O_SYNC);
 	if (fs.fd < 0) {
 		ret = J_ENOENT;
 		goto exit;
@@ -214,7 +214,7 @@ int jfsck(const char *name, struct jfsck
 			ret = J_ENOMEM;
 			goto exit;
 		}
-		tfd = open(tname, O_RDWR | O_SYNC | O_LARGEFILE, 0600);
+		tfd = open(tname, O_RDWR | O_SYNC, 0600);
 		if (tfd < 0) {
 			res->invalid++;
 			goto loop;
diff -puN bindings/python/libjio.c~always_O_LARGEFILE bindings/python/libjio.c
--- cur/bindings/python/libjio.c~always_O_LARGEFILE	2004-09-14 02:24:39.635803120 -0300
+++ cur-root/bindings/python/libjio.c	2004-09-14 02:24:49.517300904 -0300
@@ -616,7 +616,6 @@ PyMODINIT_FUNC initlibjio(void)
 	PyModule_AddIntConstant(m, "O_NDELAY", O_NDELAY);
 	PyModule_AddIntConstant(m, "O_SYNC", O_SYNC);
 	PyModule_AddIntConstant(m, "O_ASYNC", O_ASYNC);
-	PyModule_AddIntConstant(m, "O_LARGEFILE", O_LARGEFILE);
 
 	/* lseek constants */
 	PyModule_AddIntConstant(m, "SEEK_SET", SEEK_SET);
_
