summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg>2005-12-18 23:32:49 +0000
committerjoerg <joerg>2005-12-18 23:32:49 +0000
commit4cee56c845e1059db9d4ffe3d5979014696b643c (patch)
tree2597f0c6ff9af92bc845a4db78234f5c774df073 /graphics
parentae26f946baef2b60efa6d2f68ca15b072a9c3d28 (diff)
downloadpkgsrc-4cee56c845e1059db9d4ffe3d5979014696b643c.tar.gz
Fix errno. Use NAME_MAX if available.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/camediaplay/distinfo3
-rw-r--r--graphics/camediaplay/patches/patch-aa38
2 files changed, 40 insertions, 1 deletions
diff --git a/graphics/camediaplay/distinfo b/graphics/camediaplay/distinfo
index 417fd18c091..33ef49b427c 100644
--- a/graphics/camediaplay/distinfo
+++ b/graphics/camediaplay/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 08:45:03 agc Exp $
+$NetBSD: distinfo,v 1.4 2005/12/18 23:32:49 joerg Exp $
SHA1 (camediaplay-20010211.tar.gz) = d6809c9d0e1be692a9a1e468ee759cc9ceb5b276
RMD160 (camediaplay-20010211.tar.gz) = 17fcd6f1c23b43169ed8de0c726c951cea0fcd80
Size (camediaplay-20010211.tar.gz) = 48193 bytes
+SHA1 (patch-aa) = 094b164286609808635c1bf81e8e551adad670e2
diff --git a/graphics/camediaplay/patches/patch-aa b/graphics/camediaplay/patches/patch-aa
new file mode 100644
index 00000000000..f8e4d11fa8b
--- /dev/null
+++ b/graphics/camediaplay/patches/patch-aa
@@ -0,0 +1,38 @@
+$NetBSD: patch-aa,v 1.1 2005/12/18 23:32:49 joerg Exp $
+
+--- ../src/uucplock.c.orig 2005-12-18 23:25:20.000000000 +0000
++++ ../src/uucplock.c
+@@ -40,6 +40,7 @@ static char sccsid[] = "@(#)uucplock.c 5
+ #include <sys/file.h>
+ #include <sys/dir.h>
+ #include <errno.h>
++#include <limits.h>
+
+ #include "pathnames.h"
+
+@@ -52,9 +53,12 @@ static char sccsid[] = "@(#)uucplock.c 5
+ uu_lock(ttyname)
+ char *ttyname;
+ {
+- extern int errno;
+ int fd, pid;
++#ifdef NAME_MAX
++ char tbuf[sizeof(_PATH_LOCKDIRNAME) + NAME_MAX];
++#else
+ char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN];
++#endif
+ off_t lseek();
+
+ (void)snprintf(tbuf, sizeof(tbuf), _PATH_LOCKDIRNAME, ttyname);
+@@ -104,7 +108,11 @@ uu_lock(ttyname)
+ uu_unlock(ttyname)
+ char *ttyname;
+ {
++#ifdef NAME_MAX
++ char tbuf[sizeof(_PATH_LOCKDIRNAME) + NAME_MAX];
++#else
+ char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN];
++#endif
+
+ (void)snprintf(tbuf, sizeof(tbuf), _PATH_LOCKDIRNAME, ttyname);
+ return(unlink(tbuf));