This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix missing declarations
- From: Andreas Schwab <schwab at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 30 Oct 2009 15:06:06 +0100
- Subject: 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."