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>
pull/7/head
OBATA Akio 5 years ago
parent d3b49e3ec5
commit 2c18879814

@ -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