Fix build error with clang.

This commit is contained in:
Vanilla I. Shu 2011-09-23 08:31:33 +00:00
parent 814597bd1d
commit 2d30d9b85c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282225
2 changed files with 44 additions and 0 deletions

View file

@ -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;

View file

@ -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;
{