serverLog: call setvbuf unconditionally

The setvbuf() function is part of C89, and we require C89 support
from our platforms.  Remove the configure check and the corresponding
conditional logic.  (As it happens, we were calling setvbuf() without
the conditional elsewhere anyway, via the setlinebuf() macros, so
we should not see any additional breakage from this change.)

Change-Id: Iff850bfbafdb9a17f50410d309d9d9e9be3fa951
Reviewed-on: https://gerrit.openafs.org/15841
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
This commit is contained in:
Benjamin Kaduk 2024-08-22 14:34:30 -07:00 committed by Michael Meffie
parent add810c1db
commit 4f7d192bcb
2 changed files with 0 additions and 5 deletions

View File

@ -26,7 +26,6 @@ AC_CHECK_FUNCS([ \
regerror \ regerror \
regexec \ regexec \
setitimer \ setitimer \
setvbuf \
sigaction \ sigaction \
strcasestr \ strcasestr \
strerror \ strerror \

View File

@ -527,11 +527,7 @@ RedirectStdStreams(const char *fileName)
/* don't care */ /* don't care */
} }
if (freopen(fileName, "a", stderr) != NULL) { if (freopen(fileName, "a", stderr) != NULL) {
#ifdef HAVE_SETVBUF
setvbuf(stderr, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0);
#else
setbuf(stderr, NULL);
#endif
} }
} }