#include <stdio.h>
#include <time.h>
-/* Include the original <wchar.h>. */
+/* Include the original <wchar.h> if it exists.
+ Some builds of uClibc lack it. */
/* The include_next requires a split double-inclusion guard. */
-#if @HAVE_INCLUDE_NEXT@
-# include_next <wchar.h>
-#else
-# include @ABSOLUTE_WCHAR_H@
+#if @HAVE_WCHAR_H@
+# if @HAVE_INCLUDE_NEXT@
+# include_next <wchar.h>
+# else
+# include @ABSOLUTE_WCHAR_H@
+# endif
#endif
#ifndef _GL_WCHAR_H