aboutsummaryrefslogtreecommitdiff
path: root/src/util/pty/sane_hostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/pty/sane_hostname.c')
-rw-r--r--src/util/pty/sane_hostname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/pty/sane_hostname.c b/src/util/pty/sane_hostname.c
index 43814df..8881fde 100644
--- a/src/util/pty/sane_hostname.c
+++ b/src/util/pty/sane_hostname.c
@@ -42,7 +42,7 @@ pty_make_sane_hostname(struct sockaddr_in *addr,
char **out)
{
struct hostent *hp;
-#ifndef NO_UT_HOST
+#ifdef HAVE_STRUCT_UTMP_UT_HOST
struct utmp ut;
#else
struct utmpx utx;
@@ -55,7 +55,7 @@ pty_make_sane_hostname(struct sockaddr_in *addr,
if (maxlen && maxlen < 16)
/* assume they meant 16, otherwise IP addr won't fit */
maxlen = 16;
-#ifndef NO_UT_HOST
+#ifdef HAVE_STRUCT_UTMP_UT_HOST
ut_host_len = sizeof (ut.ut_host);
#else
ut_host_len = sizeof (utx.ut_host);