]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (dtucker) [configure.ac openbsd-compat/bsd-misc.h] Add setlinebuf for
authorDarren Tucker <dtucker@zip.com.au>
Tue, 3 Jul 2012 22:50:09 +0000 (08:50 +1000)
committerDarren Tucker <dtucker@zip.com.au>
Tue, 3 Jul 2012 22:50:09 +0000 (08:50 +1000)
   platforms that don't have it.  "looks good" tim@

ChangeLog
configure.ac
openbsd-compat/bsd-misc.h

index 2c998748e255e23f7f00af4ad0f95ce56cf3b618..b19f41cf60c0aae0fa47c2c3833109e3a2bfff15 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20120704
+ - (dtucker) [configure.ac openbsd-compat/bsd-misc.h] Add setlinebuf for
+   platforms that don't have it.  "looks good" tim@
+
 20120703
  - (dtucker) [configure.ac] Detect platforms that can't use select(2) with
    setrlimit(RLIMIT_NOFILE, rl_zero) and disable the rlimit sandbox on those.
index f7033bc0b09ceb415d5d9589962560cb1e6ef421..da919a6361f1ca3f7c8d8329f91bb2131fc1d91a 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.494 2012/07/03 12:48:31 dtucker Exp $
+# $Id: configure.ac,v 1.495 2012/07/03 22:50:10 dtucker Exp $
 #
 # Copyright (c) 1999-2004 Damien Miller
 #
@@ -15,7 +15,7 @@
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
-AC_REVISION($Revision: 1.494 $)
+AC_REVISION($Revision: 1.495 $)
 AC_CONFIG_SRCDIR([ssh.c])
 AC_LANG([C])
 
@@ -1571,6 +1571,7 @@ AC_CHECK_FUNCS([ \
        seteuid \
        setgroupent \
        setgroups \
+       setlinebuf \
        setlogin \
        setpassent\
        setpcred \
index e3717562564e7cdd11cddd3f483482a33487400d..eac5217ca564f9af1251f6be7e325866eb83f3b6 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: bsd-misc.h,v 1.20 2012/02/14 18:03:31 tim Exp $ */
+/* $Id: bsd-misc.h,v 1.21 2012/07/03 22:50:10 dtucker Exp $ */
 
 /*
  * Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org>
@@ -51,6 +51,9 @@ int setegid(uid_t);
 const char *strerror(int);
 #endif 
 
+#if !defined(HAVE_SETLINEBUF)
+#define setlinebuf(a)  (setvbuf((a), NULL, _IOLBF, 0))
+#endif
 
 #ifndef HAVE_UTIMES
 #ifndef HAVE_STRUCT_TIMEVAL