1
0
Fork 0
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:
Gerhard Rieger 2008-09-29 21:16:41 +02:00
parent a0435920f6
commit 618170baf3
4 changed files with 13 additions and 1 deletions

View file

@ -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