aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-06-04 11:36:06 +0000
committerEric Wong <normalperson@yhbt.net>2006-06-04 11:36:06 +0000
commit5cbfdf3517d0e9711da972989151c29c5dfadad8 (patch)
tree8c5ddbb54f2ae740f9fd101d74fbe2e571312b33 /src
parentab069b7e594b4de202cd4b0a083379397e278339 (diff)
downloadmpd-5cbfdf3517d0e9711da972989151c29c5dfadad8.tar.gz
mpd-5cbfdf3517d0e9711da972989151c29c5dfadad8.tar.xz
mpd-5cbfdf3517d0e9711da972989151c29c5dfadad8.zip
correctly check for setenv() function
git-svn-id: https://svn.musicpd.org/mpd/trunk@4245 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 944eb037a..2b76f8d9d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -70,7 +70,7 @@ typedef struct _Options {
/*
* from git-1.3.0, needed for solaris
*/
-#ifndef setenv
+#ifndef HAVE_SETENV
int setenv(const char *name, const char *value, int replace)
{
int out;
@@ -103,7 +103,7 @@ int setenv(const char *name, const char *value, int replace)
return out;
}
-#endif
+#endif /* HAVE_SETENV */
void usage(char * argv[]) {
ERROR("usage:\n");