diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-06-12 02:56:58 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-06-12 02:56:58 +0200 |
commit | 08122b137e76ffcf7067f634a7668002732e11d9 (patch) | |
tree | 30507bd9b39b46525b8941f1986dff2fa30f03af /tdm/backend/dm.h | |
parent | e1d8ccc637042d5ab84b0d532590f4cf8ef8e567 (diff) | |
download | tdebase-08122b137e76ffcf7067f634a7668002732e11d9.tar.gz tdebase-08122b137e76ffcf7067f634a7668002732e11d9.zip |
Fix FTBFS on freebsd
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdm/backend/dm.h')
-rw-r--r-- | tdm/backend/dm.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tdm/backend/dm.h b/tdm/backend/dm.h index c05d4c865..ae731aeca 100644 --- a/tdm/backend/dm.h +++ b/tdm/backend/dm.h @@ -106,7 +106,6 @@ typedef int waitType; # define Jmp_buf sigjmp_buf #endif -#include <utmp.h> #ifdef HAVE_UTMPX # include <utmpx.h> # define STRUCTUTMP struct utmpx @@ -119,6 +118,7 @@ typedef int waitType; # define ut_time ut_tv.tv_sec # define ll_time ll_tv.tv_sec #else +# include <utmp.h> # define STRUCTUTMP struct utmp # define UTMPNAME utmpname # define SETUTENT setutent @@ -126,9 +126,9 @@ typedef int waitType; # define PUTUTLINE pututline # define ENDUTENT endutent # define LASTLOG lastlog -#endif -#ifndef HAVE_STRUCT_UTMP_UT_USER -# define ut_user ut_name +# ifndef HAVE_STRUCT_UTMP_UT_USER +# define ut_user ut_name +# endif #endif #ifndef WTMP_FILE # ifdef _PATH_WTMPX |