From 305b0ffce5ccf0a740031b6510b5987ad58d1e61 Mon Sep 17 00:00:00 2001 From: mycroft Date: Wed, 25 Sep 2002 06:43:46 +0000 Subject: [PATCH] #if defined -> #ifdef --- libexec/ld.elf_so/headers.c | 4 ++-- libexec/ld.elf_so/rtld.c | 4 ++-- libexec/ld.elf_so/rtld.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libexec/ld.elf_so/headers.c b/libexec/ld.elf_so/headers.c index 1cb4b9fbfb3b..3ee6521e7f4b 100644 --- a/libexec/ld.elf_so/headers.c +++ b/libexec/ld.elf_so/headers.c @@ -1,4 +1,4 @@ -/* $NetBSD: headers.c,v 1.13 2002/09/13 13:28:43 mycroft Exp $ */ +/* $NetBSD: headers.c,v 1.14 2002/09/25 06:43:46 mycroft Exp $ */ /* * Copyright 1996 John D. Polstra. @@ -194,7 +194,7 @@ _rtld_digest_dynamic(obj) #endif break; -#if defined(__mips__) +#ifdef __mips__ case DT_MIPS_LOCAL_GOTNO: obj->local_gotno = dynp->d_un.d_val; break; diff --git a/libexec/ld.elf_so/rtld.c b/libexec/ld.elf_so/rtld.c index d6d45309d79d..6bd0d4c369a6 100644 --- a/libexec/ld.elf_so/rtld.c +++ b/libexec/ld.elf_so/rtld.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtld.c,v 1.76 2002/09/24 20:23:11 mycroft Exp $ */ +/* $NetBSD: rtld.c,v 1.77 2002/09/25 06:43:46 mycroft Exp $ */ /* * Copyright 1996 John D. Polstra. @@ -174,7 +174,7 @@ _rtld_init(mapbase, relocbase) assert(objself.needed == NULL); -#if !defined(__mips__) +#ifndef __mips__ /* no relocation for mips/i386 */ assert(!objself.textrel); #endif diff --git a/libexec/ld.elf_so/rtld.h b/libexec/ld.elf_so/rtld.h index 15dd23d4f028..46363645b33e 100644 --- a/libexec/ld.elf_so/rtld.h +++ b/libexec/ld.elf_so/rtld.h @@ -1,4 +1,4 @@ -/* $NetBSD: rtld.h,v 1.57 2002/09/24 20:23:12 mycroft Exp $ */ +/* $NetBSD: rtld.h,v 1.58 2002/09/25 06:43:46 mycroft Exp $ */ /* * Copyright 1996 John D. Polstra. @@ -149,7 +149,7 @@ typedef struct Struct_Obj_Entry { const Elf_Sym *symtab; /* Symbol table */ const char *strtab; /* String table */ unsigned long strsize; /* Size in bytes of string table */ -#if defined(__mips__) +#ifdef __mips__ Elf_Word local_gotno; /* Number of local GOT entries */ Elf_Word symtabno; /* Number of dynamic symbols */ Elf_Word gotsym; /* First dynamic symbol in GOT */