diff options
author | Edward Hervey <edward@centricular.com> | 2016-10-17 08:35:35 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2016-10-17 08:35:35 +0200 |
commit | 1f00f8aa611e9314915b76fa88ca82977bd4bbb0 (patch) | |
tree | 86ba349eb17651d2b7b4ac05199c5f589c17e6fa | |
parent | a0a134fdf6aadc7d527600b1edc4563b947f07eb (diff) |
recipes: Fix sbc build with mingw
We need to include <stdint.h>
-rw-r--r-- | recipes/sbc.recipe | 1 | ||||
-rw-r--r-- | recipes/sbc/0001-sbc-Use-stdint.h.patch | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/recipes/sbc.recipe b/recipes/sbc.recipe index d6e5c781..898d6637 100644 --- a/recipes/sbc.recipe +++ b/recipes/sbc.recipe @@ -9,4 +9,5 @@ class Recipe(recipe.Recipe): files_libs = ['libsbc'] files_devel = ['include/sbc/sbc.h', 'lib/pkgconfig/sbc.pc'] configure_options = '--disable-tester --disable-tools' + patches = ['sbc/0001-sbc-Use-stdint.h.patch'] diff --git a/recipes/sbc/0001-sbc-Use-stdint.h.patch b/recipes/sbc/0001-sbc-Use-stdint.h.patch new file mode 100644 index 00000000..dcbba18a --- /dev/null +++ b/recipes/sbc/0001-sbc-Use-stdint.h.patch @@ -0,0 +1,27 @@ +From 3c6c579144ea52e55bfc292bde7a8838fa8a4327 Mon Sep 17 00:00:00 2001 +From: Edward Hervey <edward@centricular.com> +Date: Mon, 17 Oct 2016 08:32:50 +0200 +Subject: [PATCH] sbc: Use <stdint.h> + +mingw doesn't include stdint.h by default. Include it because sbc +uses int32_t and other standard types +--- + sbc/sbc_math.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/sbc/sbc_math.h b/sbc/sbc_math.h +index 5476860..25b08ea 100644 +--- a/sbc/sbc_math.h ++++ b/sbc/sbc_math.h +@@ -24,6 +24,8 @@ + * + */ + ++#include <stdint.h> ++ + #define fabs(x) ((x) < 0 ? -(x) : (x)) + /* C does not provide an explicit arithmetic shift right but this will + always be correct and every compiler *should* generate optimal code */ +-- +2.7.4 + |