Don't declare a number of POSIX functions. Esp. chmod breaks compilation
with GCC 3.4+.
This commit is contained in:
parent
6c53c66d5f
commit
c40ea802c7
2 changed files with 15 additions and 10 deletions
|
@ -1,8 +1,8 @@
|
|||
$NetBSD: distinfo,v 1.3 2005/02/24 13:40:58 agc Exp $
|
||||
$NetBSD: distinfo,v 1.4 2006/03/14 02:53:13 joerg Exp $
|
||||
|
||||
SHA1 (su2-1.3.tar.gz) = 0b84a070c0cc95098c0d61566663c89ec2d1189e
|
||||
RMD160 (su2-1.3.tar.gz) = 2f5424b6af87508b98f19b9ecdfe12a7cf624c58
|
||||
Size (su2-1.3.tar.gz) = 31067 bytes
|
||||
SHA1 (patch-aa) = 2d696c6b556e2e79b2073fa87eedc2c1f26770b4
|
||||
SHA1 (patch-ab) = 12aa6e167ae0623c549da5a4deb43a9fb5e109a3
|
||||
SHA1 (patch-ab) = 6a59bf878c2c416d677c4d705f7536ab2350ea94
|
||||
SHA1 (patch-ac) = 5f0799f9ed62b656fad7bbde776393700e2407c6
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
$NetBSD: patch-ab,v 1.1.1.1 2002/06/04 09:56:38 cjep Exp $
|
||||
$NetBSD: patch-ab,v 1.2 2006/03/14 02:53:13 joerg Exp $
|
||||
|
||||
--- su2.c.orig Thu Sep 7 13:10:11 1995
|
||||
--- su2.c.orig 1995-09-07 20:10:11.000000000 +0000
|
||||
+++ su2.c
|
||||
@@ -113,9 +113,9 @@
|
||||
@@ -113,9 +113,9 @@ char *SystemNameFile = SUPERUSERS;
|
||||
#ifndef NOSU2RC
|
||||
char *UsersNameFile = ".su2rc";
|
||||
#endif NOSU2RC
|
||||
|
@ -14,12 +14,17 @@ $NetBSD: patch-ab,v 1.1.1.1 2002/06/04 09:56:38 cjep Exp $
|
|||
|
||||
#ifndef PATH
|
||||
# ifdef BSD
|
||||
@@ -188,7 +188,7 @@
|
||||
@@ -188,13 +188,6 @@ int setpwent ();
|
||||
void setpwent ();
|
||||
#endif
|
||||
|
||||
-#ifndef sgi
|
||||
+#if !defined(sgi) && !defined(__NetBSD__)
|
||||
struct passwd *getpwuid ();
|
||||
struct passwd *getpwnam ();
|
||||
void endpwent ();
|
||||
-struct passwd *getpwuid ();
|
||||
-struct passwd *getpwnam ();
|
||||
-void endpwent ();
|
||||
-int chmod ();
|
||||
-#endif
|
||||
-
|
||||
struct passwd *pw;
|
||||
|
||||
char *ttyname ();
|
||||
|
|
Loading…
Reference in a new issue