From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Sharma Subject: [PATCH] use-large-file-api.patch Date: Wed, 20 Apr 2005 17:06:01 -0700 Message-ID: <20050421000601.GA18922@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Pratt , Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Support > 2G root fs on i386. Signed-off-by: Xin B Li Signed-off-by: Arun Sharma Index: trunk/tools/ioemu/iodev/Makefile =================================================================== --- trunk/tools/ioemu/iodev/Makefile (revision 615) +++ trunk/tools/ioemu/iodev/Makefile (revision 617) @@ -1,5 +1,11 @@ TOPDIR= .. CXXFLAGS=-I. -I../include -I.. + +ARCH=$(shell uname -i) +ifeq ($(ARCH), i386) +CXXFLAGS+=-D_FILE_OFFSET_BITS=64 +endif + OBJS=$(patsubst %.cc,%.o,$(wildcard *.cc)) BXLIBS = ../gui/libgui.a ../memory/libmemory.a LDLIBS= $(BXLIBS) -L/usr/X11R6/lib -lX11 -lXpm -lstdc++ -L ../../../tools/libxc -L ../../../tools/libxutil -lxc -lxutil -lpthread -lncurses