Change to just include <utmpx.h> over <utmp.h>

Including deprecated <utmp.h> over standard <utmpx.h> may
cause unwanted side effects, for example, enables old-code-compatibility
functions and override utmpx functions.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 2c18879814)
pull/38/head
OBATA Akio 5 years ago committed by Slávek Banko
parent 9e4dd173ab
commit 1a69923c0a
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -55,11 +55,10 @@
#define NEW_CTL_RESPONSE CTL_RESPONSE
#include "otalkd.h"
#ifdef HAVE_UTMP_H
#include <utmp.h>
#endif
#ifdef HAVE_UTMPX_H
#include <utmpx.h>
#elif defined HAVE_UTMP_H
#include <utmp.h>
#endif
#ifndef UT_LINESIZE
#define UT_LINESIZE 12

Loading…
Cancel
Save