From c6632bc15f2f808c9387c0675e2f780c1da4aabb Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Tue, 20 Oct 1998 01:55:58 +0000 Subject: [PATCH] Removed obsolete NSPR20 ifdefs. --- cmd/gnomefe/Makefile.in | 11 +---------- cmd/gnomefe/gnome-lock.c | 17 +---------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/cmd/gnomefe/Makefile.in b/cmd/gnomefe/Makefile.in index 519be2814dd9..e4e49bc52518 100644 --- a/cmd/gnomefe/Makefile.in +++ b/cmd/gnomefe/Makefile.in @@ -76,16 +76,7 @@ REQUIRES = gnuzilla \ libfont \ mariner \ msg \ - $(NULL) -ifdef NSPR20 -REQUIRES += plds \ - nspr20 \ - $(NULL) -else -REQUIRES += nspr \ - $(NULL) -endif -REQUIRES += parse \ + parse \ plug \ posixfe \ hook \ diff --git a/cmd/gnomefe/gnome-lock.c b/cmd/gnomefe/gnome-lock.c index 5e33fe62b268..1f9d0fedc6c4 100644 --- a/cmd/gnomefe/gnome-lock.c +++ b/cmd/gnomefe/gnome-lock.c @@ -4,9 +4,7 @@ #include #include -#ifdef NSPR20 -#include "private/prpriv.h" /* for PR_NewNamedMonitor */ -#endif /* NSPR20 */ +#include "nspr.h" extern int GNOMEFE_APP_HAS_DETECTED_LOCK; extern int GNOMEFE_ANOTHER_USER_IS_RUNNING_APP; @@ -100,13 +98,6 @@ fe_create_pidlock (const char *name, unsigned long *paddr, pid_t *ppid) char *colon, *after; pid_t pid; -#ifndef NSPR20 - if (gethostname (hostname, sizeof hostname) < 0 || - (hp = PR_gethostbyname (hostname, &hpbuf, dbbuf, sizeof(dbbuf), 0)) == NULL) - inaddr.s_addr = INADDR_LOOPBACK; - else - memcpy (&inaddr, hp->h_addr, sizeof inaddr); -#else { PRStatus sts; @@ -123,7 +114,6 @@ fe_create_pidlock (const char *name, unsigned long *paddr, pid_t *ppid) } } } -#endif myaddr = inaddr.s_addr; signature = PR_smprintf ("%s:%u", inet_ntoa (inaddr), (unsigned)getpid ()); @@ -257,10 +247,6 @@ void check_for_lock_file() const char *host; inaddr.s_addr = addr; -#ifndef NSPR20 - hp = PR_gethostbyaddr((char *)&inaddr, sizeof inaddr, AF_INET, - &hpbuf, dbbuf, sizeof(dbbuf), 0); -#else { PRStatus sts; PRNetAddr pr_addr; @@ -273,7 +259,6 @@ void check_for_lock_file() else hp = &hpbuf; } -#endif host = (hp == NULL) ? inet_ntoa(inaddr) : hp->h_name; fmt = PR_sprintf_append(fmt, XP_GetString(GNOMEFE_APPEARS_TO_BE_RUNNING_ON_HOST_UNDER_PID),