Skip to content

Commit

Permalink
Define TARGET_SO_INCOMING_CPU and TARGET_SO_COOKIE for MIPS in qemu.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Sep 3, 2024
1 parent 99973b8 commit 6f2ec0c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ci/more-sockopts.patch
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ diff -ur -x roms -x build a/linux-user/generic/sockbits.h b/linux-user/generic/s
+#define TARGET_SO_COOKIE 57
+#endif
#endif
diff -ur -x roms -x build a/linux-user/mips/sockbits.h b/linux-user/mips/sockbits.h
--- a/linux-user/mips/sockbits.h
+++ b/linux-user/mips/sockbits.h
@@ -73,6 +73,9 @@
#define TARGET_SO_RCVBUFFORCE 33
#define TARGET_SO_PASSSEC 34

+#define TARGET_SO_INCOMING_CPU 49
+#define TARGET_SO_COOKIE 57
+
/** sock_type - Socket types
*
* Please notice that for binary compat reasons MIPS has to
diff -ur -x roms -x build a/linux-user/syscall.c b/linux-user/syscall.c
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
Expand Down

0 comments on commit 6f2ec0c

Please sign in to comment.