summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/cfengine/files/cfengine-2.1.10-setnetgrent.patch')
-rw-r--r--net-misc/cfengine/files/cfengine-2.1.10-setnetgrent.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-misc/cfengine/files/cfengine-2.1.10-setnetgrent.patch b/net-misc/cfengine/files/cfengine-2.1.10-setnetgrent.patch
new file mode 100644
index 000000000000..dc7090e092ae
--- /dev/null
+++ b/net-misc/cfengine/files/cfengine-2.1.10-setnetgrent.patch
@@ -0,0 +1,29 @@
+diff -Nrup cfengine-2.1.10.orig/src/patches.c cfengine-2.1.10/src/patches.c
+--- cfengine-2.1.10.orig/src/patches.c 2004-04-17 10:11:04.000000000 -0400
++++ cfengine-2.1.10/src/patches.c 2004-10-24 11:21:15.000000000 -0400
+@@ -85,11 +85,12 @@ return strncmp(buf1,buf2,n);
+
+ /*********************************************************/
+
+-void setnetgrent(netgroup)
++int setnetgrent(netgroup)
+
+ const char *netgroup;
+
+ {
++ return 0;
+ }
+
+ /**********************************************************/
+diff -Nrup cfengine-2.1.10.orig/src/prototypes.h cfengine-2.1.10/src/prototypes.h
+--- cfengine-2.1.10.orig/src/prototypes.h 2004-06-25 11:12:38.000000000 -0400
++++ cfengine-2.1.10/src/prototypes.h 2004-10-24 11:20:46.000000000 -0400
+@@ -805,7 +805,7 @@ int StrnCmp ARGLIST((char *s1,char *s2,s
+
+ #ifndef HAVE_GETNETGRENT
+
+-void setnetgrent ARGLIST((const char *netgroup));
++int setnetgrent ARGLIST((const char *netgroup));
+ int getnetgrent ARGLIST((char **host, char **user, char **domain));
+ void endnetgrent ARGLIST((void));
+ #endif