aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-05 09:31:09 +0100
committerMax Kellermann <max@duempel.org>2009-01-05 09:31:09 +0100
commit0fb21e67ef763c6a83ab8f5a7ed2aa95efdc4ab2 (patch)
treed64298cd024a6483765622993aaf01a91c427ba7 /src
parent694a919b8ea893415c5c791cb853a900e596e1a3 (diff)
downloadmpd-0fb21e67ef763c6a83ab8f5a7ed2aa95efdc4ab2.tar.gz
mpd-0fb21e67ef763c6a83ab8f5a7ed2aa95efdc4ab2.tar.xz
mpd-0fb21e67ef763c6a83ab8f5a7ed2aa95efdc4ab2.zip
configure.ac: use AC_CHECK_HEADERS to check for locale.h
AC_CHECK_HEADERS defines HAVE_LOCALE_H, so we don't have to manually define HAVE_LOCALE.
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 0efb512ea..2e8700f02 100644
--- a/src/main.c
+++ b/src/main.c
@@ -72,7 +72,7 @@
#include <grp.h>
#endif
-#ifdef HAVE_LOCALE
+#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
@@ -221,7 +221,7 @@ int main(int argc, char *argv[])
daemonize_close_stdin();
-#ifdef HAVE_LOCALE
+#ifdef HAVE_LOCALE_H
/* initialize locale */
setlocale(LC_CTYPE,"");
#endif