summaryrefslogtreecommitdiff
path: root/x11/kde4-workspace/files/patch-kdm-backend-dm.h
blob: 3a7191ad946931e2465494ae02befcbdca04b360 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- kdm/backend/dm.h
+++ kdm/backend/dm.h
@@ -102,7 +102,6 @@
 # define Jmp_buf sigjmp_buf
 #endif
 
-#include <utmp.h>
 #ifdef HAVE_UTMPX
 # include <utmpx.h>
 # define STRUCTUTMP struct utmpx
@@ -113,15 +112,16 @@
 # define ENDUTENT endutxent
 # define ut_time ut_tv.tv_sec
 #else
+# include <utmp.h>
 # define STRUCTUTMP struct utmp
 # define UTMPNAME utmpname
 # define SETUTENT setutent
 # define GETUTENT getutent
 # define PUTUTLINE pututline
 # define ENDUTENT endutent
-#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