qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Carlo Marcelo Arenas Belón" <carenas@gmail.com>
To: qemu-devel@nongnu.org
Cc: "Carlo Marcelo Arenas Belón" <carenas@gmail.com>
Subject: [Qemu-devel] [PATCH] linux_user: fix TARGET_SOL_SOCKET for sparc
Date: Tue, 19 Sep 2017 23:35:58 -0700	[thread overview]
Message-ID: <20170920063558.89376-1-carenas@gmail.com> (raw)

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
---
 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
-- 
2.14.1

                 reply	other threads:[~2017-09-20  6:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170920063558.89376-1-carenas@gmail.com \
    --to=carenas@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).