diff -rc xen-3.0.3_0-src/tools/libxc/Makefile xen-3.0.3_0-src.new/tools/libxc/Makefile *** xen-3.0.3_0-src/tools/libxc/Makefile 2006-10-15 08:22:03.000000000 -0400 --- xen-3.0.3_0-src.new/tools/libxc/Makefile 2006-11-15 16:08:47.000000000 -0500 *************** *** 39,44 **** --- 39,48 ---- CFLAGS += -fno-strict-aliasing CFLAGS += $(INCLUDES) -I. + # Enable large file support. + CFLAGS += $(shell getconf LFS64_CFLAGS) + LDFLAGS += $(shell getconf LFS64_LDFLAGS) $(shell getconf LFS64_LIBS) + # Define this to make it possible to run valgrind on code linked with these # libraries. #CFLAGS += -DVALGRIND -O0 -ggdb3 diff -rc xen-3.0.3_0-src/tools/libxc/xc_core.c xen-3.0.3_0-src.new/tools/libxc/xc_core.c *** xen-3.0.3_0-src/tools/libxc/xc_core.c 2006-10-15 08:22:03.000000000 -0400 --- xen-3.0.3_0-src.new/tools/libxc/xc_core.c 2006-11-15 16:07:02.000000000 -0500 *************** *** 1,6 **** --- 1,7 ---- #include "xg_private.h" #include #include + #include /* number of pages to write at a time */ #define DUMP_INCREMENT (4 * 1024) *************** *** 156,162 **** struct dump_args da; int sts; ! if ( (da.fd = open(corename, O_CREAT|O_RDWR, S_IWUSR|S_IRUSR)) < 0 ) { PERROR("Could not open corefile %s: %s", corename, strerror(errno)); return -errno; --- 157,163 ---- struct dump_args da; int sts; ! if ( (da.fd = open(corename, O_CREAT|O_RDWR|O_LARGEFILE, S_IWUSR|S_IRUSR)) < 0 ) { PERROR("Could not open corefile %s: %s", corename, strerror(errno)); return -errno;