Fix build on 5.x

When attempting to build the didentd port on FreeBSD 5.1-R, it
fails in get_info4.c and get_info6.c with a complaint that it
does not know the size of variable 'uc'.

PR:		56332
Submitted by:	Pat Lashley <patl+freebsd@volant.org>
Approved by:	maintainer timeout (3 weeks)
This commit is contained in:
Erwin Lansing 2003-09-24 08:17:35 +00:00
parent a48e8aef24
commit 0ca18c7143
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89147
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- get_info4_freebsd.c.orig Sun Oct 14 07:57:15 2001
+++ get_info4_freebsd.c Thu Sep 4 17:00:32 2003
@@ -7,6 +7,7 @@
*
*/
+#define _WANT_UCRED 1
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/socket.h>

View File

@ -0,0 +1,10 @@
--- get_info6_freebsd.c.orig Fri Oct 12 14:27:48 2001
+++ get_info6_freebsd.c Thu Sep 4 17:01:19 2003
@@ -10,6 +10,7 @@
*
*/
+#define _WANT_UCRED 1
#include <unistd.h> /* for close */
#include <pwd.h> /* for getpwuid */