Package: mhwaveedit / 1.4.23-1

02-hurd_ftbfs.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Replace the use of the macro PIPE_BUF with a call to fpathconf
 for those platforms which don't provide it.
Author: Alessio Treglia <alessio@debian.org>
Forwarded: no
---
 src/pipedialog.c |    4 ++++
 1 file changed, 4 insertions(+)

--- mhwaveedit.orig/src/pipedialog.c
+++ mhwaveedit/src/pipedialog.c
@@ -445,7 +445,11 @@ static Chunk *pipe_dialog_pipe_chunk_mai
 	       }
 	       /* printf("Writing data...\n"); */
 	       /* Write data */
+#ifdef PIPE_BUF
 	       i = write(fds[0],outbuf+bp,MIN(bs-bp,PIPE_BUF));
+#else
+	       i = write(fds[0],outbuf+bp,MIN(bs-bp,fpathconf(fds[0], _PC_PIPE_BUF)));
+#endif
 	       /* i = write(fds[0],outbuf+bp,1); */
 	       /* printf("Finished writing.\n"); */
 	       if (i == -1) {