summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/readutmp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/readutmp.h b/lib/readutmp.h
index 3d4ef253d..5a08fdab4 100644
--- a/lib/readutmp.h
+++ b/lib/readutmp.h
@@ -42,6 +42,9 @@
# endif
# else
# include <utmp.h>
+# if !HAVE_DECL_GETUTENT
+ struct utmp *getutent();
+# endif
# define UTMP_STRUCT_NAME utmp
# define UT_TIME_MEMBER(UT_PTR) ((UT_PTR)->ut_time)
# define SET_UTMP_ENT setutent