summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2021-04-15 20:52:51 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-15 20:52:51 +0000
commit96f0822a64d8c0e7925a414e3c6afd65847ff393 (patch)
tree72fab28769307d4c47d929b8b44554e817a14399
parent79e79951db534d674f29d10f8d7ee0edaed2c25e (diff)
parent88f565a6710683a3009772115fd5cd752b66d371 (diff)
downloadx86_64-linux-glibc2.17-4.8-96f0822a64d8c0e7925a414e3c6afd65847ff393.tar.gz
Original change: https://android-review.googlesource.com/c/platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/+/1673806 Change-Id: I0a0c3c19dc93cee77e225ab9d0d1a62cf2afdf03
-rw-r--r--sysroot-patches/glibc-2.17-enable-so-reuse-port.patch16
-rw-r--r--sysroot/usr/include/asm-generic/socket.h2
2 files changed, 17 insertions, 1 deletions
diff --git a/sysroot-patches/glibc-2.17-enable-so-reuse-port.patch b/sysroot-patches/glibc-2.17-enable-so-reuse-port.patch
new file mode 100644
index 0000000..700c6a1
--- /dev/null
+++ b/sysroot-patches/glibc-2.17-enable-so-reuse-port.patch
@@ -0,0 +1,16 @@
+b/159148705 . All of our supported users have Linux 3.9+ at this point, so
+SO_REUSEPORT should be made available to anyone who wants to use it.
+
+diff --git a/sysroot/usr/include/asm-generic/socket.h b/sysroot/usr/include/asm-generic/socket.h
+index 2d32d07..316f06c 100644
+--- a/sysroot/usr/include/asm-generic/socket.h
++++ b/sysroot/usr/include/asm-generic/socket.h
+@@ -22,7 +22,7 @@
+ #define SO_PRIORITY 12
+ #define SO_LINGER 13
+ #define SO_BSDCOMPAT 14
+-/* To add :#define SO_REUSEPORT 15 */
++#define SO_REUSEPORT 15
+
+ #ifndef SO_PASSCRED /* powerpc only differs in these */
+ #define SO_PASSCRED 16
diff --git a/sysroot/usr/include/asm-generic/socket.h b/sysroot/usr/include/asm-generic/socket.h
index 2d32d07..316f06c 100644
--- a/sysroot/usr/include/asm-generic/socket.h
+++ b/sysroot/usr/include/asm-generic/socket.h
@@ -22,7 +22,7 @@
#define SO_PRIORITY 12
#define SO_LINGER 13
#define SO_BSDCOMPAT 14
-/* To add :#define SO_REUSEPORT 15 */
+#define SO_REUSEPORT 15
#ifndef SO_PASSCRED /* powerpc only differs in these */
#define SO_PASSCRED 16