diff -Nru asterisk-1.8.0.orig//include/asterisk/localtime.h asterisk-1.8.0/include/asterisk/localtime.h
--- asterisk-1.8.0.orig//include/asterisk/localtime.h	2010-09-30 19:50:52.000000000 +0200
+++ asterisk-1.8.0/include/asterisk/localtime.h	2010-10-29 12:36:50.846052474 +0200
@@ -29,7 +29,7 @@
 #elif defined(HAVE_LOCALE_T_IN_XLOCALE_H)
 #include <xlocale.h>
 #else
-typedef void * locale_t;
+//typedef void * locale_t;
 #endif
 
 struct ast_tm {
