summaryrefslogtreecommitdiffstats
path: root/shell-term-fm
diff options
context:
space:
mode:
authorIsmael Luceno2020-07-29 00:54:15 +0200
committerIsmael Luceno2020-07-29 00:54:15 +0200
commit70c3fd1530984ff2bb3926db3e2c23c2a0716353 (patch)
tree224b3f81f221dfefad6fe03017b5decf279021fd /shell-term-fm
parent93cb296bb7283ad13f46cd97226bac94bf4ea885 (diff)
spacefm: fix missing include for major & minor macros on non-glibc systems
Diffstat (limited to 'shell-term-fm')
-rw-r--r--shell-term-fm/spacefm/HISTORY1
-rwxr-xr-xshell-term-fm/spacefm/PRE_BUILD5
2 files changed, 6 insertions, 0 deletions
diff --git a/shell-term-fm/spacefm/HISTORY b/shell-term-fm/spacefm/HISTORY
index 42ffe1d06e..c31542935b 100644
--- a/shell-term-fm/spacefm/HISTORY
+++ b/shell-term-fm/spacefm/HISTORY
@@ -1,5 +1,6 @@
2020-07-28 Ismael Luceno <ismael@sourcemage.org>
* PRE_BUILD: Fixed build against musl
+ fixed missing major & minor macros on non-glibc systems
2020-07-29 Ismael Luceno <ismael@sourcemage.org>
* DETAILS: updated spell to 1.0.6
diff --git a/shell-term-fm/spacefm/PRE_BUILD b/shell-term-fm/spacefm/PRE_BUILD
index a3f2a268f4..65ec6de016 100755
--- a/shell-term-fm/spacefm/PRE_BUILD
+++ b/shell-term-fm/spacefm/PRE_BUILD
@@ -5,4 +5,9 @@ cd "$SOURCE_DIRECTORY" &&
sedit "s:/usr/bin/sha256sum:/bin/sha256sum:" src/vfs/vfs-file-task.c &&
sedit "s:/usr/bin/sha256sum:/bin/sha256sum:;s:/usr/bin/sha512sum:/bin/sha512sum:" src/spacefm-auth &&
sedit "s:/usr/bin/sha256sum:/bin/sha256sum:;s:/usr/bin/sha512sum:/bin/sha512sum:" src/spacefm-auth.bash &&
+
+# fix missing major & minor macros
+sedit '/^#include <locale/a#include <sys/sysmacros.h>' src/main.c &&
+
+# fix for musl libc
sedit 's!maybe_os in$!& linux-musl*|\\!' config.sub