Skip to contentSkip to conversation

linux_user: fix TARGET_SOL_SOCKET for sparc

PATCH New Carlo Marcelo Arenas Belón 1 participant 1 message Sep 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux_user: fix TARGET_SOL_SOCKET for sparc

---
 linux-user/socket.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
linux-user/socket.h +5 -4
index 129f9b4713..1db1a184b9 100644
@@ -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
Signature · 1 line
2.14.1