From 7a1207f7189dae1b6d390eb8adbfb63bf264e4e3 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sun, 20 Feb 2011 17:18:01 -0500 Subject: [PATCH] Compilation fix for Solaris > 4 (untested). --- src/modules/login.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/login.c b/src/modules/login.c index bbe8104..b2cbccf 100644 --- a/src/modules/login.c +++ b/src/modules/login.c @@ -166,7 +166,7 @@ static char *get_pid(uid_t uid, int multi) #include #endif -#ifdef __svr4__ +#ifdef __sun__ #include #include #endif @@ -180,7 +180,7 @@ static char *get_pid(uid_t uid, int multi) pid_t *pids = 0, *tpids; int pid_index = 0; -#ifdef __svr4__ +#ifdef __sun__ int fd; struct pstatus pstat; #else @@ -210,7 +210,7 @@ again: char buf[LINE_MAX]; int i; -#ifndef __svr4__ +#ifndef __sun__ char *t; #endif @@ -230,7 +230,7 @@ again: * The current user owns this file (process id). */ if (st.st_uid == uid) { -#ifdef __svr4__ +#ifdef __sun__ if ((fd = open(filename, O_RDONLY)) == -1) continue; -- 2.11.4.GIT