From 551050e647e07671968a82c74d417328b858566d Mon Sep 17 00:00:00 2001 From: David Pirotte Date: Sat, 22 Oct 2016 22:31:06 -0200 Subject: [PATCH 2/4] Fixing a deprecated param in Guile-2.2 * src/os/process.scm: _IONBF setvbuf mode deprecated in Guile-2.2, use 'none instead. --- src/os/process.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/os/process.scm b/src/os/process.scm index 0dd302d..57a3bdc 100644 --- a/src/os/process.scm +++ b/src/os/process.scm @@ -141,7 +141,10 @@ Examples: ;;; matter, making it unbuffered would just slow things down. (define (unbuffered-pipe) (let ((result (pipe))) - (setvbuf (cdr result) _IONBF) + (cond-expand (guile-2.2 + (setvbuf (cdr result) 'none)) + (guile-2 + (setvbuf (cdr result) _IONBF))) result)) ;;; generate the code needed to set up redirections for a child process. -- 2.9.3