projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab9842b
)
[HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
author
Jim Meyering
<jim@meyering.net>
Tue, 4 Jul 2000 08:44:28 +0000
(08:44 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 4 Jul 2000 08:44:28 +0000
(08:44 +0000)
This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
From Bob Proulx.
lib/readutmp.h
patch
|
blob
|
history
diff --git
a/lib/readutmp.h
b/lib/readutmp.h
index 5a08fdab41c028acb12ac9a0c07c1b7a2e55139f..6f512fad646664b139470d12ef36674a45d09f42 100644
(file)
--- a/
lib/readutmp.h
+++ b/
lib/readutmp.h
@@
-31,6
+31,10
@@
# 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)