projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(jm_ICONV): Recommend GNU libiconv.
[gnulib.git]
/
lib
/
readutmp.h
diff --git
a/lib/readutmp.h
b/lib/readutmp.h
index
5a08fda
..
6f512fa
100644
(file)
--- a/
lib/readutmp.h
+++ b/
lib/readutmp.h
@@
-31,6
+31,10
@@
# include <sys/types.h>
# ifdef HAVE_UTMPX_H
# include <sys/types.h>
# ifdef HAVE_UTMPX_H
+# ifdef HAVE_UTMP_H
+ /* HPUX 10.20 needs utmp.h, for the definition of e.g., UTMP_FILE. */
+# include <utmp.h>
+# endif
# include <utmpx.h>
# define UTMP_STRUCT_NAME utmpx
# define UT_TIME_MEMBER(UT_PTR) ((UT_PTR)->ut_tv.tv_sec)
# include <utmpx.h>
# define UTMP_STRUCT_NAME utmpx
# define UT_TIME_MEMBER(UT_PTR) ((UT_PTR)->ut_tv.tv_sec)