mirror of
https://git.freebsd.org/ports.git
synced 2025-06-27 07:30:32 -04:00
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
35 lines
589 B
C
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;
|