Skip to content

Commit

Permalink
fix(Xtrans.patch): prevent creating unsupported abstract sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
twaik committed Feb 10, 2025
1 parent b7c315f commit 73f2f99
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion app/src/main/cpp/patches/Xtrans.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@ diff --git a/Xtranssock.c b/Xtranssock.c
index b06579c..bb5238b 100644
--- a/Xtranssock.c
+++ b/Xtranssock.c
@@ -200,20 +200,28 @@ static int TRANS(SocketINETClose) (XtransConnInfo ciptr);
@@ -141,10 +141,6 @@
/* others don't need this */
#define SocketInitOnce() /**/

-#ifdef __linux__
-#define HAVE_ABSTRACT_SOCKETS
-#endif
-
#define MIN_BACKLOG 128
#ifdef SOMAXCONN
#if SOMAXCONN > MIN_BACKLOG
@@ -200,20 +196,28 @@ static int TRANS(SocketINETClose) (XtransConnInfo ciptr);


#if defined(X11_t)
Expand Down

0 comments on commit 73f2f99

Please sign in to comment.