[HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare getutent.
authorJim Meyering <jim@meyering.net>
Wed, 5 Apr 2000 15:05:54 +0000 (15:05 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 5 Apr 2000 15:05:54 +0000 (15:05 +0000)
lib/readutmp.h

index 3d4ef253d40878cf53f6bed4a2661ea24582bda9..5a08fdab41c028acb12ac9a0c07c1b7a2e55139f 100644 (file)
@@ -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