ports/multimedia/transcode/files/patch-import:ioaux.c
Tilman Keskinoz 74d2a1519a Update to 0.6.4
Changes:
- update MASTER_SITES since the maintainer changed
- add %%WITH_NASM%% knob to Makefile and pkg-plist to honor WITH_NASM
  option correctly. Attention: WITH_NASM gets set if bin/nasm is
  found but this may not be enough for transcode as nasm >= 0.98.34
  is needed. Checking for bin/nasm-0.98.35 might be a way of achieving
  this but leads to more work when updating nasm itself.
- add WITH_SUBRIP knob suggested by Michael Nottebrock in
  ports/47923 and implemented in ports/48649.
- incorporate dvd_reader.c patch by Atte Peltomaeki which has already
  been added in ports/48649
- remove the transcode.c patch from ports/48649 since it made its way
  into the main distribution
- add threading patch by Andriy Gapon in ports/48126
- pkg-plist update

PR:		50377
Submitted by:	maintainer
2003-04-05 22:53:51 +00:00

35 lines
589 B
C

--- import/ioaux.c.orig Thu Mar 27 19:14:55 2003
+++ import/ioaux.c Thu Mar 27 19:17:21 2003
@@ -36,8 +36,14 @@
while (r < len) {
n = read (fd, buf + r, len - r);
- if (n <= 0)
- return r;
+ if (n == 0)
+ break;
+ if (n < 0) {
+ if (errno == EINTR)
+ continue;
+ else
+ break;
+ }
r += n;
}
@@ -51,9 +57,12 @@
while (r < len) {
n = write (fd, buf + r, len - r);
- if (n < 0)
- return n;
-
+ if (n < 0) {
+ if (errno == EINTR)
+ continue;
+ else
+ break;
+ }
r += n;
}
return r;