FreeBSD Port: sysutils/userinfo
Ben Kibbey
bjk at luxsci.net
Sun Jan 9 16:05:16 UTC 2011
I noticed a build failure for the userinfo utility not too long ago.
There is no longer a ports maintainer for this one so I thought I'd try
to get it fixed here. Could someone see if the following patch fixes it
as I don't have a FreeBSD box.
Also, where are the build logs? I can't seem to find them again.
diff --git a/src/modules/login.c b/src/modules/login.c
index 0f354a7..9bf0b24 100644
--- a/src/modules/login.c
+++ b/src/modules/login.c
@@ -24,7 +24,6 @@
#include <time.h>
#include <pwd.h>
#include <ctype.h>
-#include <utmp.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/src/modules/login.h b/src/modules/login.h
index 55bd5bb..2a20765 100644
--- a/src/modules/login.h
+++ b/src/modules/login.h
@@ -59,6 +59,7 @@
#endif
typedef struct utmpx UTMP;
#else
+#include <utmp.h>
typedef struct utmp UTMP;
#endif
--
Ben Kibbey
[XMPP: bjk AT thiessen DOT org] - [IRC: (bjk) FreeNode/OFTC]
More information about the freebsd-ports
mailing list