From c0a0655a5a3bb81f1b086c9f24f145615c3c52f0 Mon Sep 17 00:00:00 2001
From: Chris Zankel <chris@zankel.net>
Date: Sat, 13 Sep 2008 19:54:56 +0000
Subject: 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.

---
 libc/string/xtensa/strcmp.S | 1 +
 1 file changed, 1 insertion(+)

(limited to 'libc')

diff --git a/libc/string/xtensa/strcmp.S b/libc/string/xtensa/strcmp.S
index 90c418d12..622bb27ed 100644
--- a/libc/string/xtensa/strcmp.S
+++ b/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
-- 
cgit v1.2.3