答: 给yocto打补丁,补丁内容如下:
+diff --git a/locale/bits/types/locale_t.h b/locale/bits/types/locale_t.h
+new file mode 100644
+index 0000000000..b519a6c5f8
+--- /dev/null
++++ b/locale/bits/types/locale_t.h
+@@ -0,0 +1 @@
++#include <xlocale.h>
+--
+2.14.3
+
扩展:补丁参考此处
https://patchwork.openembedded.org/patch/146479/
yocto编译时报错"glibc/locale/xlocale.h:39:4: note: previous declaration of '__locale_t' was here"
原文:https://www.cnblogs.com/dakewei/p/12986785.html