ports/net/tac_plus4/files/patch-ab
Joe Marcus Clarke 206208b780 Fix the build with utmpx.h.
Submitted by:	ed (based on)
2010-02-12 23:32:17 +00:00

30 lines
702 B
Text

--- tac_plus.h.orig 2009-07-27 20:11:53.000000000 -0400
+++ tac_plus.h 2010-02-12 18:13:49.000000000 -0500
@@ -86,6 +86,7 @@
#ifdef FREEBSD
#define CONST_SYSERRLIST
#define NO_PWAGE
+#include <sys/param.h>
#endif
#ifdef BSDI
@@ -138,7 +139,11 @@
# include <sys/syslog.h>
#endif
+#if defined(FREEBSD) && __FreeBSD_version >= 900007
+#include <utmpx.h>
+#else
#include <utmp.h>
+#endif
#include <unistd.h>
@@ -655,6 +660,7 @@ int sendpass_fn(struct authen_data *data
int enable_fn(struct authen_data *data);
int default_v0_fn(struct authen_data *data);
int skey_fn(struct authen_data *data);
+int opie_fn(struct authen_data *data);
#ifdef MAXSESS
void loguser(struct acct_rec *);