Only use unsetenv() when it is available
[ngircd-alex.git] / src / ngircd / conn.c
index 324fa4219a9d204723572e1eeb8fbf8ea1badbee..e8bfcf1c70cbbb9e848061eff7b151a2a7c8f854 100644 (file)
@@ -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;
 }