summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2013-11-10 17:08:41 +0100
committerAlexander Barton <alex@barton.de>2013-11-10 17:08:51 +0100
commitae00c100acdb4d2d3f99524d30258d07eefcfb6d (patch)
treee08f7580d60d44959c79821702d635404fbe445d /src
parent61d1c864c55291c1f5f81f284e984b044fe2722f (diff)
downloadngircd-ae00c100acdb4d2d3f99524d30258d07eefcfb6d.tar.gz
ngircd-ae00c100acdb4d2d3f99524d30258d07eefcfb6d.zip
Only use unsetenv() when it is available
AIX 4.3 dosn't support it, for example.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 324fa421..e8bfcf1c 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -152,7 +152,9 @@ my_sd_listen_fds(void)
 	if (!e || !*e)
 		return -1;
 	count = atoi(e);
+#ifdef HAVE_UNSETENV
 	unsetenv("LISTEN_FDS");
+#endif
 
 	return count;
 }