diff options
author | Ismael Luceno | 2019-05-17 00:00:20 +0200 |
---|---|---|
committer | Ismael Luceno | 2019-05-17 21:35:17 +0200 |
commit | 64582a6629350ff178bfcbce94cb9358133728d3 (patch) | |
tree | 1ce6462dd46c547a788d83aa0554aa88f2694d69 /doc | |
parent | c9bb20c86b39225df334da32521574976529c232 (diff) |
man: Fix build against musl
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man/HISTORY | 3 | ||||
-rwxr-xr-x | doc/man/PRE_BUILD | 1 | ||||
-rw-r--r-- | doc/man/missing-includes.patch | 14 |
3 files changed, 18 insertions, 0 deletions
diff --git a/doc/man/HISTORY b/doc/man/HISTORY index 5c1eb85abe..6ef4cdecf1 100644 --- a/doc/man/HISTORY +++ b/doc/man/HISTORY @@ -1,3 +1,6 @@ +2019-05-16 Ismael Luceno <ismael@sourcemage.org> + * PRE_BUILD, missing-includes.patch: Fixed build against musl + 2018-04-09 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de> * PROVIDES: provide MAN diff --git a/doc/man/PRE_BUILD b/doc/man/PRE_BUILD index 16c544890e..3009454db0 100755 --- a/doc/man/PRE_BUILD +++ b/doc/man/PRE_BUILD @@ -1,4 +1,5 @@ default_pre_build && cd "$SOURCE_DIRECTORY" && +patch -fp1 -i "$SPELL_DIRECTORY/missing-includes.patch" && patch -p0 < "$SPELL_DIRECTORY/man.conf.patch" diff --git a/doc/man/missing-includes.patch b/doc/man/missing-includes.patch new file mode 100644 index 0000000000..afa2a1ad0a --- /dev/null +++ b/doc/man/missing-includes.patch @@ -0,0 +1,14 @@ +Missing includes; required at least for compiling against musl. + +diff --git a/gencat/gencat.c.orig b/gencat/gencat.c +index d1a7c31..99be7fa 100644 +--- a/gencat/gencat.c.orig ++++ b/gencat/gencat.c +@@ -55,6 +55,7 @@ up-to-date. Many thanks. + #endif + #include <sys/file.h> + #include <sys/stat.h> ++#include <fcntl.h> + #include "gencat.h" + + #ifndef L_SET |