diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/replace.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/lib/replace.c b/source3/lib/replace.c index bac0b7be9d..f252b84801 100644 --- a/source3/lib/replace.c +++ b/source3/lib/replace.c @@ -375,3 +375,10 @@ char *rep_inet_ntoa(struct in_addr ip) return (acc); } #endif /* HAVE_STRTOUL */ + +#ifndef HAVE_SETLINEBUF +void setlinebuf(FILE *stream) +{ + setvbuf(stream, (char *)NULL, _IOLBF, 0); +} +#endif /* HAVE_SETLINEBUF */ |