svn commit: r303073 - head/misc/detachtty/files
Baptiste Daroussin
bapt at FreeBSD.org
Fri Aug 24 11:24:31 UTC 2012
Author: bapt
Date: Fri Aug 24 11:24:31 2012
New Revision: 303073
URL: http://svn.freebsd.org/changeset/ports/303073
Log:
Fix build with clang
Added:
head/misc/detachtty/files/patch-copy-stream.c (contents, props changed)
Added: head/misc/detachtty/files/patch-copy-stream.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/detachtty/files/patch-copy-stream.c Fri Aug 24 11:24:31 2012 (r303073)
@@ -0,0 +1,11 @@
+--- ./copy-stream.c.orig 2003-01-18 15:03:15.000000000 +0100
++++ ./copy-stream.c 2012-08-24 13:22:21.932915476 +0200
+@@ -21,7 +21,7 @@
+
+ int output_buffer(int fd) {
+ int bytes_written=0,bytes_to_write=bytes_in_buf;
+- if(fd<0) return;
++ if(fd<0) return 0;
+ while(bytes_to_write>0) {
+ bytes_written=write(fd,buf,bytes_to_write);
+ if(bytes_written==-1) return -1;
More information about the svn-ports-all
mailing list