mirror of
https://repo.or.cz/socat.git
synced 2025-07-15 07:33:25 +00:00
HP-UX port: unsetenv() might not exist
This commit is contained in:
parent
a0435920f6
commit
618170baf3
4 changed files with 13 additions and 1 deletions
2
sycls.c
2
sycls.c
|
@ -1459,6 +1459,7 @@ int Setenv(const char *name, const char *value, int overwrite) {
|
|||
return result;
|
||||
}
|
||||
|
||||
#if HAVE_UNSETENV
|
||||
/* on Linux it returns int but on FreeBSD void.
|
||||
we do not expect many errors, so we take void which works on all systems. */
|
||||
void Unsetenv(const char *name) {
|
||||
|
@ -1470,6 +1471,7 @@ void Unsetenv(const char *name) {
|
|||
errno = _errno;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if WITH_READLINE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue