Received: from eggs.gnu.org ([2001:4830:134:3::10]:38716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wlnon-0003Cd-EY for qemu-devel@nongnu.org; Sat, 17 May 2014 19:15:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wlnoh-00074Q-CK for qemu-devel@nongnu.org; Sat, 17 May 2014 19:15:05 -0400 Received: from sub5.mail.dreamhost.com ([208.113.200.129]:55949 helo=homiemail-a50.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wlnoh-000747-3V for qemu-devel@nongnu.org; Sat, 17 May 2014 19:14:59 -0400 From: Peter Bartoli Content-Type: multipart/alternative; boundary="Apple-Mail=_0E962E4A-8E29-404B-83C7-08C3E343CA9B" Date: Sat, 17 May 2014 16:14:59 -0700 Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: [Qemu-devel] OS X compile fix List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Peter Maydell , =?iso-8859-1?Q?Andreas_F=E4rber?= --Apple-Mail=_0E962E4A-8E29-404B-83C7-08C3E343CA9B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii At the recommendation of Mark Cave-Ayland, I'm sending this patch in to = remedy a long-time Mac OS X compile issue. The offsets are a way off in = this diff, but it still works. -peter --- block/raw-posix.c.orig 2012-12-03 11:37:05.000000000 -0800 +++ block/raw-posix.c 2012-12-03 18:24:47.000000000 -0800 @@ -914,11 +914,11 @@ size =3D 0; } if (size =3D=3D 0) #endif #if defined(__APPLE__) && defined(__MACH__) - size =3D LONG_LONG_MAX; + size =3D LLONG_MAX; #else size =3D lseek(fd, 0LL, SEEK_END); #endif #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) switch(s->type) {= --Apple-Mail=_0E962E4A-8E29-404B-83C7-08C3E343CA9B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

At the recommendation of Mark = Cave-Ayland, I'm sending this patch in to remedy a long-time Mac OS X = compile issue.  The offsets are a way off in this diff, but it = still works.

-peter

--- block/raw-posix.c.orig      2012-12-03 = 11:37:05.000000000 -0800
+++ block/raw-posix.c   2012-12-03 = 18:24:47.000000000 -0800
@@ -914,11 +914,11 @@
   =                     =   size =3D 0;
         }
   =       if (size =3D=3D 0)
 #endif
 #if = defined(__APPLE__) && defined(__MACH__)
-        = size =3D LONG_LONG_MAX;
+        size =3D = LLONG_MAX;
 #else
         size =3D = lseek(fd, 0LL, SEEK_END);
 #endif
 #if defined(__FreeBSD__) || = defined(__FreeBSD_kernel__)
         = switch(s->type) {
= --Apple-Mail=_0E962E4A-8E29-404B-83C7-08C3E343CA9B--