summaryrefslogtreecommitdiff
path: root/net/qadsl/files/patch-src::lock.c
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-04-14 09:26:15 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-04-14 09:26:15 +0000
commit339de32364eb8ef4724985115a1e91befdccb556 (patch)
treec9323e26c2986da83a7237d0be2ec355baf21368 /net/qadsl/files/patch-src::lock.c
parentupdate comms/gammu to 1.00.0 (diff)
- Update to 1.3.3
- Revamp packaging (me) PR: ports/71604 Submitted by: Fredrik Lindberg Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=133308
Diffstat (limited to '')
-rw-r--r--net/qadsl/files/patch-src::lock.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/net/qadsl/files/patch-src::lock.c b/net/qadsl/files/patch-src::lock.c
new file mode 100644
index 000000000000..bf00326fbb4e
--- /dev/null
+++ b/net/qadsl/files/patch-src::lock.c
@@ -0,0 +1,44 @@
+*** src/lock.c.orig Sat Mar 13 23:39:41 2004
+--- src/lock.c Sat Sep 11 22:05:09 2004
+***************
+*** 153,159 ****
+ */
+
+ pid_t
+! lock_read (char **file)
+ {
+ int fd, fallback;
+ FILE *fp;
+--- 153,159 ----
+ */
+
+ pid_t
+! lock_read (char *file)
+ {
+ int fd, fallback;
+ FILE *fp;
+***************
+*** 165,175 ****
+ fallback = 0;
+ do
+ {
+! fd = open(*file, O_RDONLY);
+ if (-1 == fd)
+ {
+! *file = fallback_pid_files [fallback++];
+! if (NULL == *file)
+ {
+ /* This makes us depend on procps and coreutils in GNU/Linux
+ * but only coreutils in GNU/Hurd.
+--- 165,175 ----
+ fallback = 0;
+ do
+ {
+! fd = open(file, O_RDONLY);
+ if (-1 == fd)
+ {
+! file = fallback_pid_files [fallback++];
+! if (NULL == file)
+ {
+ /* This makes us depend on procps and coreutils in GNU/Linux
+ * but only coreutils in GNU/Hurd.