void-packages/srcpkgs/plan9port/patches/linux5.patch
human 8d04054eae plan9port: update to 20190619.
+ build with libucontext on musl
2019-10-21 18:28:58 +02:00

24 lines
726 B
Diff

From 81268c62d35f4b4bc226a4916a8354764b1f5853 Mon Sep 17 00:00:00 2001
From: Ivy Foster <iff@escondida.tk>
Date: Sat, 18 May 2019 14:25:01 -0500
Subject: [PATCH] 9l: Update and near-future-proof Linux version check
---
bin/9l | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git bin/9l bin/9l
index 6195815f7..d03b4760e 100755
--- bin/9l
+++ bin/9l
@@ -40,7 +40,9 @@ case "$tag" in
userpath=true
extralibs="$extralibs -lutil -lresolv"
case "${SYSVERSION:-`uname -r`}" in
- 2.6.* | 3.* | 4.*)
+ # Assuming that versions change more often than the name of
+ # the threading library, this should save some future updates.
+ 2.6.* | [3-9].* | [1-9][0-9].*)
extralibs="$extralibs -lpthread"
;;
esac