From patchwork Wed Sep 20 06:35:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Carlo_Marcelo_Arenas_Bel=C3=B3n?= X-Patchwork-Id: 9960937 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 E535160234 for ; Wed, 20 Sep 2017 06:38:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8D8C28FAC for ; Wed, 20 Sep 2017 06:38:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD9DD28FC5; Wed, 20 Sep 2017 06:38:24 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 548AF28FAC for ; Wed, 20 Sep 2017 06:38:23 +0000 (UTC) Received: from localhost ([::1]:47006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duYeM-0002I8-LC for patchwork-qemu-devel@patchwork.kernel.org; Wed, 20 Sep 2017 02:38:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duYdj-0002HY-MR for qemu-devel@nongnu.org; Wed, 20 Sep 2017 02:37:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duYde-0004k5-MM for qemu-devel@nongnu.org; Wed, 20 Sep 2017 02:37:43 -0400 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:34553) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duYde-0004fU-HO for qemu-devel@nongnu.org; Wed, 20 Sep 2017 02:37:38 -0400 Received: by mail-pg0-x244.google.com with SMTP id u18so1151253pgo.1 for ; Tue, 19 Sep 2017 23:37:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aQ2JsWKoMv2F8V7zJHRUEacghp9skqVmciD/Kw2GRjg=; b=Vl9ppWA5vjPnsZYE08Oa8WBsYC73JKB6A/sc/XedlpxFXb0VKKJFi24EY95sOaZz7F gmKZToTFWeLvJqyV7gbqWD0gM2rDrGKqwVE0W0j6MeYAuA9rhgQRGVMxY9mpBYUPuwD4 QIPJPbPZ+t10KYyHjtyHcVm+AAVID/LyG3cvUrOigitjNZb/YNqFzByepNnwJTdm5Gtr TfDK2IA+9tSfIHB/73wl8hGDkDbxWpeeNxjtBXEpl8z1o5eYL/jUCLxpomf6fwYhbmH8 mqSFY1LMLfccdMejtwb5jKWSxNW5UbR788xDM3Fazqd5/TpiOPWMDk9hSiyEIOwuU7jQ nb2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aQ2JsWKoMv2F8V7zJHRUEacghp9skqVmciD/Kw2GRjg=; b=hih82uQ5UYgd+bPOO64GaJSUheTID9ICR52NoBlNrg+5bgwpRwBm4jMzkcQ3t1fKKE 9PSl4Eq3cN5+whq2MwiKHXywBaleS3tlYqBg91XigkmKi4pnaBfIPmXB5Y4AQNxCnyTt 9qnu6Ur6I8pAL1BBSL3Ad6DQGYbx1Dh9YZLBJO9slpFdVWpHruRvXDPHytpVfAgBzwHx IIqut5+8O3hzN3RJRrsDqvDzoVJupuQtrFB3a51z8D3HSAzwW/WpORjV4Grjcz+D0ntK oA23PyKx6O3GsO/PYfie79Cy1hZRqBeNZrDQgiDyH+d730ViN8f6Tle/Q6TqiRY7QXW4 5SNA== X-Gm-Message-State: AHPjjUhMHSZTw+mjMzNVx1q4B+0dFvBBzZy1i9ETjM0JtlV0nqkbqf8K IrAbi/o81WiBooEzhZ4CiHtBKh79 X-Google-Smtp-Source: AOwi7QC2jxbIVu1fiJ2DTx/VNij+dhovwqBpSkly+bCn8eGzihQQp3R9hcZKtAf42O3hpGDvOkb3ZA== X-Received: by 10.84.232.8 with SMTP id h8mr1097334plk.62.1505889457201; Tue, 19 Sep 2017 23:37:37 -0700 (PDT) Received: from localhost.localdomain (c-73-189-82-67.hsd1.ca.comcast.net. [73.189.82.67]) by smtp.gmail.com with ESMTPSA id n2sm6655849pgq.30.2017.09.19.23.37.35 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Sep 2017 23:37:36 -0700 (PDT) From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= To: qemu-devel@nongnu.org Date: Tue, 19 Sep 2017 23:35:58 -0700 Message-Id: <20170920063558.89376-1-carenas@gmail.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::244 Subject: [Qemu-devel] [PATCH] linux_user: fix TARGET_SOL_SOCKET for sparc 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: , Cc: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Carlo Marcelo Arenas Belón --- linux-user/socket.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/linux-user/socket.h b/linux-user/socket.h index 129f9b4713..1db1a184b9 100644 --- a/linux-user/socket.h +++ b/linux-user/socket.h @@ -229,7 +229,9 @@ * @SOCK_NONBLOCK - sets the O_NONBLOCK file status flag. */ - #define ARCH_HAS_SOCKET_TYPES 1 + #define ARCH_HAS_SOCKET_TYPES 1 + + #define TARGET_SOL_SOCKET 0xffff enum sock_type { TARGET_SOCK_STREAM = 1, @@ -250,14 +252,13 @@ #define TARGET_SO_PASSSEC 31 #else + #define TARGET_SOL_SOCKET 1 + #define TARGET_SO_LINGER 13 #define TARGET_SO_PASSSEC 34 #endif - /* For setsockopt(2) */ - #define TARGET_SOL_SOCKET 1 - #define TARGET_SO_DEBUG 1 #define TARGET_SO_REUSEADDR 2 #define TARGET_SO_TYPE 3