mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Not all OSs have setbuffer, so we better check for it.
Andrew Bartlett
This commit is contained in:
parent
a73aefef09
commit
aa5708de69
892
source/configure
vendored
892
source/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -499,6 +499,8 @@ AC_CHECK_FUNCS(setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate
|
||||
AC_CHECK_FUNCS(lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64)
|
||||
AC_CHECK_FUNCS(fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf)
|
||||
AC_CHECK_FUNCS(srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink)
|
||||
# setbuffer is needed for smbtorture
|
||||
AC_CHECK_FUNCS(setbuffer)
|
||||
|
||||
# syscall() is needed for smbwrapper.
|
||||
AC_CHECK_FUNCS(syscall)
|
||||
|
@ -640,6 +640,9 @@
|
||||
/* Define if you have the set_auth_parameters function. */
|
||||
#undef HAVE_SET_AUTH_PARAMETERS
|
||||
|
||||
/* Define if you have the setbuffer function. */
|
||||
#undef HAVE_SETBUFFER
|
||||
|
||||
/* Define if you have the setenv function. */
|
||||
#undef HAVE_SETENV
|
||||
|
||||
|
@ -3213,7 +3213,9 @@ static void usage(void)
|
||||
|
||||
dbf = stdout;
|
||||
|
||||
#ifdef HAVE_SETBUFFER
|
||||
setbuffer(stdout, NULL, 0);
|
||||
#endif
|
||||
|
||||
charset_initialise();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user