From patchwork Mon Nov 6 00:56:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Smith X-Patchwork-Id: 10042455 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6792D601EB for ; Mon, 6 Nov 2017 00:57:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78C522920A for ; Mon, 6 Nov 2017 00:57:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DCA629225; Mon, 6 Nov 2017 00:57:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0255C2920A for ; Mon, 6 Nov 2017 00:57:49 +0000 (UTC) Received: from localhost ([::1]:46096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBVjY-0003KW-5M for patchwork-qemu-devel@patchwork.kernel.org; Sun, 05 Nov 2017 19:57:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBViz-0003KQ-QC for qemu-devel@nongnu.org; Sun, 05 Nov 2017 19:57:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBViw-0000m7-Or for qemu-devel@nongnu.org; Sun, 05 Nov 2017 19:57:13 -0500 Received: from speedy.comstyle.com ([206.51.28.2]:29235 helo=mail.comstyle.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBViw-0000lz-KI for qemu-devel@nongnu.org; Sun, 05 Nov 2017 19:57:10 -0500 Received: from mail.comstyle.com (localhost [127.0.0.1]) by mail.comstyle.com (Postfix) with ESMTP id 4A38E9843A for ; Sun, 5 Nov 2017 19:57:10 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=comstyle.com; h=date:from :to:subject:message-id:mime-version:content-type; s=selector1; bh=5EThHZPvZlzqKhXoWDlcN3hximU=; b=Wr0BvaZt0PZmapDMbIZB+6Kneegl AfAmrsNEJ8un0W3pLl5dulG7SqPgccg187tziTh0ZmS9IKHS1s6SU76UGM/qBm9j Wi0KThYSxORT/SyAl26G/7CzByAdVFLTXKEDiAXGe67R4VYYxWGjOA2xh/esS2LQ N4tI04z84HCXmWY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=comstyle.com; h=date:from:to :subject:message-id:mime-version:content-type; q=dns; s= selector1; b=WX4SHm6M+yADOCBT5djPC+XEpuqMQheBllDiyftRl0anceQdKGX pIh0uZkYy2WBl3Wobe5Wl0wO+pxa9/fY4dF0gX9HUiKhI0J0ixV4FGsq296zN7Mj 4bVNS4q/iXaugqzhHN4acnFbycQLyU4E51H0Gl/bq6jzUFRC8hzv82+Q= Received: from humpty.home.comstyle.com (unknown [IPv6:2607:fea8:12c0:f00:3c40:9470:82cf:3fa8]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id 1D70C98439 for ; Sun, 5 Nov 2017 19:57:10 -0500 (EST) Date: Sun, 5 Nov 2017 19:56:58 -0500 From: Brad Smith To: qemu-devel@nongnu.org Message-ID: <20171106005656.GC84093@humpty.home.comstyle.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.51.28.2 Subject: [Qemu-devel] [PATCH] osdep: Deal with TIME_MAX and OpenBSD 64-bit time_t X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Define TIME_MAX to LLONG_MAX for OpenBSD since OpenBSD uses 64-bit time_t. Signed-off-by: Brad Smith diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 6855b94bbf..824714049b 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -132,8 +132,12 @@ extern int daemon(int, int); #define ESHUTDOWN 4099 #endif #ifndef TIME_MAX +#ifdef __OpenBSD__ +#define TIME_MAX LLONG_MAX +#else #define TIME_MAX LONG_MAX #endif +#endif /* HOST_LONG_BITS is the size of a native pointer in bits. */ #if UINTPTR_MAX == UINT32_MAX