mirror of
https://github.com/osmarks/ngircd.git
synced 2025-02-07 12:50:03 +00:00
Only use unsetenv() when it is available
AIX 4.3 dosn't support it, for example. (cherry picked from commit ae00c100acdb4d2d3f99524d30258d07eefcfb6d)
This commit is contained in:
parent
54a13350b1
commit
e379a0881e
@ -189,7 +189,7 @@ AC_CHECK_FUNCS([ \
|
|||||||
AC_CHECK_FUNCS_ONCE([ \
|
AC_CHECK_FUNCS_ONCE([ \
|
||||||
arc4random arc4random_stir gai_strerror getaddrinfo getnameinfo inet_aton
|
arc4random arc4random_stir gai_strerror getaddrinfo getnameinfo inet_aton
|
||||||
sigaction sigprocmask snprintf vsnprintf strdup strndup strlcpy strlcat \
|
sigaction sigprocmask snprintf vsnprintf strdup strndup strlcpy strlcat \
|
||||||
strtok_r waitpid])
|
strtok_r unsetenv waitpid])
|
||||||
|
|
||||||
# -- Configuration options --
|
# -- Configuration options --
|
||||||
|
|
||||||
|
@ -152,7 +152,9 @@ my_sd_listen_fds(void)
|
|||||||
if (!e || !*e)
|
if (!e || !*e)
|
||||||
return -1;
|
return -1;
|
||||||
count = atoi(e);
|
count = atoi(e);
|
||||||
|
#ifdef HAVE_UNSETENV
|
||||||
unsetenv("LISTEN_FDS");
|
unsetenv("LISTEN_FDS");
|
||||||
|
#endif
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user