summaryrefslogtreecommitdiff
path: root/src/os.h
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2016-05-21 21:42:36 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2016-06-18 15:08:28 +0200
commit59a2d9b99c6129db27d2d73014b5ecec3d148a8c (patch)
treee789fdef57df1660e9ab61e51a1a46dc9862c845 /src/os.h
parent9c00bd5aa03ebe9fe9f62308df04967cb8926eca (diff)
downloadscreen-59a2d9b99c6129db27d2d73014b5ecec3d148a8c.tar.gz
make utmp log windows properly
Diffstat (limited to 'src/os.h')
-rw-r--r--src/os.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/os.h b/src/os.h
index 25c85db..b78460f 100644
--- a/src/os.h
+++ b/src/os.h
@@ -80,15 +80,11 @@
* utmp handling
*/
-#ifdef GETUTENT
- typedef char *slot_t;
-#else
- typedef int slot_t;
-#endif
-
#if defined(ENABLE_UTMP)
# include <utmpx.h>
+typedef char* slot_t; /* used internally in utmp.c */
+
# ifndef UTMPFILE
# ifdef UTMPX_FILE
# define UTMPXFILE UTMPX_FILE
@@ -103,17 +99,6 @@
#endif /* ENABLE_UTMP */
-#ifdef LOGOUTOK
-# ifndef LOGINDEFAULT
-# define LOGINDEFAULT 0
-# endif
-#else
-# ifdef LOGINDEFAULT
-# undef LOGINDEFAULT
-# endif
-# define LOGINDEFAULT 1
-#endif
-
/*****************************************************************
* signal stuff
*/