summaryrefslogtreecommitdiff
path: root/lib/readutmp.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-04-05 15:05:54 +0000
committerJim Meyering <jim@meyering.net>2000-04-05 15:05:54 +0000
commita9dbf48d7c5cd3fc1a0f72188585c37dd715069e (patch)
treeacbea29f484b3ffdffc9f20e2f1ad0434d313773 /lib/readutmp.h
parenta456afefb13486e442be0cc6205b70e527d8f60b (diff)
downloadgnulib-a9dbf48d7c5cd3fc1a0f72188585c37dd715069e.tar.gz
[HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
Diffstat (limited to 'lib/readutmp.h')
-rw-r--r--lib/readutmp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/readutmp.h b/lib/readutmp.h
index 3d4ef253d4..5a08fdab41 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