This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix missing declarations


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]