瀏覽代碼

xtensa: The Xtensa-specific strcmp.S file is testing the __UCLIBC_HAS_LOCALE__ macro but it does not include <features.h>, so that macro is never defined. This causes problems with strcoll when locale support is enabled.

Chris Zankel 17 年之前
父節點
當前提交
c0a0655a5a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      libc/string/xtensa/strcmp.S

+ 1 - 0
libc/string/xtensa/strcmp.S

@@ -19,6 +19,7 @@
 
 #include "../../sysdeps/linux/xtensa/sysdep.h"
 #include <bits/xtensa-config.h>
+#include <features.h>
 
 #ifdef __XTENSA_EB__
 #define	MASK0 0xff000000