From: Ben Kibbey Date: Sun, 20 Feb 2011 22:18:01 +0000 (-0500) Subject: Compilation fix for Solaris > 4 (untested). X-Git-Tag: v2.4~12 X-Git-Url: https://repo.or.cz/w/userinfo.git/commitdiff_plain/7a1207f7189dae1b6d390eb8adbfb63bf264e4e3 Compilation fix for Solaris > 4 (untested). --- 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;