diff --git a/recipes/wip/libs/libuuid/recipe.toml b/recipes/wip/libs/libuuid/recipe.toml index 392012daa..8a9947f99 100644 --- a/recipes/wip/libs/libuuid/recipe.toml +++ b/recipes/wip/libs/libuuid/recipe.toml @@ -1,5 +1,7 @@ -#TODO can't recognize Redox target [source] tar = "https://sourceforge.net/projects/libuuid/files/libuuid-1.0.3.tar.gz/download" +patches = [ + "redox.patch" +] [build] template = "configure" diff --git a/recipes/wip/libs/libuuid/redox.patch b/recipes/wip/libs/libuuid/redox.patch new file mode 100644 index 000000000..3b98fa75d --- /dev/null +++ b/recipes/wip/libs/libuuid/redox.patch @@ -0,0 +1,26 @@ +diff --git a/config.sub b/config.sub +index 52f04bc..4a352eb 100755 +--- a/config.sub ++++ b/config.sub +@@ -1376,7 +1376,7 @@ case $os in + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ +- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) ++ | -skyos* | -haiku* | -rdos* | -redox* | -toppers* | -drops* | -es*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) +diff --git a/randutils.c b/randutils.c +index 80893d3..a39168d 100644 +--- a/randutils.c ++++ b/randutils.c +@@ -13,7 +13,7 @@ + #include + #include + +-#include ++// #include + + #include "randutils.h" +