summaryrefslogtreecommitdiff
path: root/lib/libalpm/be_local.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-01 09:59:12 -0600
committerDan McGee <dan@archlinux.org>2011-02-01 09:59:12 -0600
commit87240dae6d4631a812ee81ed53c1622dd164bfcf (patch)
tree5141771886be0f17a5b9947e8db94ce59ef5e6c5 /lib/libalpm/be_local.c
parent111e07d0be44b76b910c6a004421ede4f6f6fb49 (diff)
downloadpacman-87240dae6d4631a812ee81ed53c1622dd164bfcf.tar.xz
Fix locale.h/setlocale inclusion with --disable-nls
Noted in FS#22697. When I factored out _alpm_parsedate() into a common function, I didn't move the <locale.h> include properly, causing a build failure when NLS is disabled and this header isn't automatically included everywhere. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_local.c')
-rw-r--r--lib/libalpm/be_local.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c
index 9602c825..c7110faf 100644
--- a/lib/libalpm/be_local.c
+++ b/lib/libalpm/be_local.c
@@ -30,7 +30,6 @@
#include <dirent.h>
#include <time.h>
#include <limits.h> /* PATH_MAX */
-#include <locale.h> /* setlocale */
/* libarchive */
#include <archive.h>
@@ -912,5 +911,4 @@ pmdb_t *_alpm_db_register_local(void)
return(db);
}
-
/* vim: set ts=2 sw=2 noet: */