From patchwork Fri May 23 16:15:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 30834 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B2BC920369 for ; Fri, 23 May 2014 16:15:45 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id ey11sf18997151pad.0 for ; Fri, 23 May 2014 09:15:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=/3pdaRQoDNrY8ilfBcnP/JFUZ1t3WZHAlHsjyOutFtg=; b=V3yqrL5sRXJve/KBHIDdnL7FblyR33jUy+/I3RBM9W/ua30mKfH+K6k8eqA+0mvzLf lH69w4MqWqIuo11WLh+IQ8vilOcCkiJnTsXzPq8EJysL5toSnWY/q97Dodhb0PE6FOrU icKusbixvo3M3nqPfYMg6VI8bOmWO8yqB4mND0t1osyJW2PWzGb9yrDjn7s5fdIUU6tv WellTpzRVtzDeaddTOEkjwphMZLkk5xwsIpVmmZaIYAgiCGDWm7xxfO5GWbZcw6zYi1/ q0AIXGkJJ3V3pXiD2+6sPUDqoZ0MeMcMCJsSM72dV3RXB4i6mg6LTOqmVLlb1n2/DE4R PGLw== X-Gm-Message-State: ALoCoQkW4Sb2KnYkFg+RcOwvwN51Tpv+srjnMiz/LM2nDU5YPRr//xLRS120sUvzj5IsxJYoT1PJ X-Received: by 10.66.232.229 with SMTP id tr5mr2795087pac.16.1400861744818; Fri, 23 May 2014 09:15:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.225 with SMTP id o88ls478192qge.88.gmail; Fri, 23 May 2014 09:15:44 -0700 (PDT) X-Received: by 10.220.44.20 with SMTP id y20mr1416899vce.60.1400861744710; Fri, 23 May 2014 09:15:44 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id cb8si1922613vcb.36.2014.05.23.09.15.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 09:15:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id im17so6499439vcb.38 for ; Fri, 23 May 2014 09:15:44 -0700 (PDT) X-Received: by 10.221.7.71 with SMTP id on7mr5212860vcb.18.1400861744618; Fri, 23 May 2014 09:15:44 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp44476vcb; Fri, 23 May 2014 09:15:44 -0700 (PDT) X-Received: by 10.194.85.225 with SMTP id k1mr5255086wjz.49.1400861743747; Fri, 23 May 2014 09:15:43 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id i1si2952961wja.94.2014.05.23.09.15.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 23 May 2014 09:15:43 -0700 (PDT) Received-SPF: none (google.com: pm215@archaic.org.uk does not designate permitted sender hosts) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Wns8D-0004Bm-7A; Fri, 23 May 2014 17:15:41 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Kevin Wolf , Stefan Hajnoczi , Peter Bartoli , =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [PATCH] block/raw-posix.c: Avoid nonstandard LONG_LONG_MAX Date: Fri, 23 May 2014 17:15:41 +0100 Message-Id: <1400861741-16077-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , In the MacOSX specific code in raw-posix.c we use the define LONG_LONG_MAX. This is actually a non-standard pre-C99 define; switch to using the standard LLONG_MAX instead. This apparently fixes a compilation failure with certain compiler/OS versions (though it is unclear which). Reported-by: Peter Bartoli Signed-off-by: Peter Maydell Reviewed-by: Stefan Hajnoczi --- block/raw-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/raw-posix.c b/block/raw-posix.c index 6586a0c..b7f0f26 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -1192,7 +1192,7 @@ again: if (size == 0) #endif #if defined(__APPLE__) && defined(__MACH__) - size = LONG_LONG_MAX; + size = LLONG_MAX; #else size = lseek(fd, 0LL, SEEK_END); #endif