--- src/gettext.h.orig	2003-09-28 10:30:30.000000000 -0500
+++ src/gettext.h	2010-09-21 02:24:49.000000000 -0500
@@ -25,6 +25,10 @@
 /* Get declarations of GNU message catalog functions.  */
 # include <libintl.h>
 
+#ifdef setlocale
+#undef setlocale
+#endif
+
 #else
 
 /* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
