summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_package.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-01 16:59:12 +0100
committerDan McGee <dan@archlinux.org>2011-02-01 16:59:12 +0100
commit87240dae6d4631a812ee81ed53c1622dd164bfcf (patch)
tree5141771886be0f17a5b9947e8db94ce59ef5e6c5 /lib/libalpm/be_package.c
parent111e07d0be44b76b910c6a004421ede4f6f6fb49 (diff)
downloadpacman-87240dae6d4631a812ee81ed53c1622dd164bfcf.tar.gz
pacman-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_package.c')
-rw-r--r--lib/libalpm/be_package.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c
index fa757214..7e46c08e 100644
--- a/lib/libalpm/be_package.c
+++ b/lib/libalpm/be_package.c
@@ -24,7 +24,6 @@
#include <stdlib.h>
#include <string.h>
#include <limits.h>
-#include <locale.h> /* setlocale */
#include <errno.h>
/* libarchive */