Fix missing declarations

Andreas Schwab schwab@redhat.com
Fri Oct 30 14:11:00 GMT 2009


This fixes these warnings:

programs/locale-spec.c: In function 'locale_special':
programs/locale-spec.c:129: warning: implicit declaration of function 'error'
programs/locale-spec.c:129: warning: implicit declaration of function 'gettext'
programs/locale-spec.c:129: warning: incompatible implicit declaration of built-in function 'gettext'

Andreas.

2009-10-30  Andreas Schwab  <schwab@redhat.com>

	* locale/programs/locale-spec.c: Include <error.h> and
	<libintl.h>.

diff --git a/locale/programs/locale-spec.c b/locale/programs/locale-spec.c
index 63a7a32..f50f58e 100644
--- a/locale/programs/locale-spec.c
+++ b/locale/programs/locale-spec.c
@@ -24,6 +24,8 @@
 #include <stdio.h>
 #include <string.h>
 #include <wchar.h>
+#include <error.h>
+#include <libintl.h>
 
 #include "localeinfo.h"
 

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."



More information about the Libc-alpha mailing list