aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2011-09-23 16:31:33 +0800
committervanilla <vanilla@FreeBSD.org>2011-09-23 16:31:33 +0800
commit9cc54c3f70e56020692e92e4de304671670a088e (patch)
tree3104b744b5dd3eeae998d3f161a27a6877e9eb53 /misc
parent8ac611b7df35acaf88d312283983f9979a7ff02b (diff)
downloadfreebsd-ports-gnome-9cc54c3f70e56020692e92e4de304671670a088e.tar.gz
freebsd-ports-gnome-9cc54c3f70e56020692e92e4de304671670a088e.tar.zst
freebsd-ports-gnome-9cc54c3f70e56020692e92e4de304671670a088e.zip
Fix build error with clang.
Diffstat (limited to 'misc')
-rw-r--r--misc/crosspad/files/patch-src_main.c11
-rw-r--r--misc/crosspad/files/patch-src_uucplock.c33
2 files changed, 44 insertions, 0 deletions
diff --git a/misc/crosspad/files/patch-src_main.c b/misc/crosspad/files/patch-src_main.c
new file mode 100644
index 000000000000..833304afc6cb
--- /dev/null
+++ b/misc/crosspad/files/patch-src_main.c
@@ -0,0 +1,11 @@
+--- ../src/main.c.orig 2011-09-19 09:01:45.000000000 +0800
++++ ../src/main.c 2011-09-19 09:02:18.000000000 +0800
+@@ -578,7 +578,7 @@ cleanup()
+ uucpunlock(n0);
+ }
+
+-void
++int
+ main(argc, argv)
+ int argc;
+ char **argv;
diff --git a/misc/crosspad/files/patch-src_uucplock.c b/misc/crosspad/files/patch-src_uucplock.c
new file mode 100644
index 000000000000..a0188182c11f
--- /dev/null
+++ b/misc/crosspad/files/patch-src_uucplock.c
@@ -0,0 +1,33 @@
+--- ../src/uucplock.c.orig 1999-12-02 11:12:24.000000000 +0800
++++ ../src/uucplock.c 2011-09-19 09:03:11.000000000 +0800
+@@ -37,9 +37,13 @@ static char sccsid[] = "@(#)uucplock.c 5
+
+ #include "config.h"
+
++#include <sys/types.h>
++#include <stdio.h>
++#include <signal.h>
+ #include <sys/file.h>
+-#include <sys/dir.h>
++#include <dirent.h>
+ #include <errno.h>
++#include <unistd.h>
+
+ #include "pathnames.h"
+
+@@ -49,6 +53,7 @@ static char sccsid[] = "@(#)uucplock.c 5
+ * -1 - failure
+ */
+
++int
+ uu_lock(ttyname)
+ char *ttyname;
+ {
+@@ -101,6 +106,7 @@ uu_lock(ttyname)
+ return(0);
+ }
+
++int
+ uu_unlock(ttyname)
+ char *ttyname;
+ {