Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/elf2ecoff Proper usage of HAVE_CONFIG_H.



details:   https://anonhg.NetBSD.org/src/rev/80aa91532ba6
branches:  trunk
changeset: 526109:80aa91532ba6
user:      tv <tv%NetBSD.org@localhost>
date:      Thu Apr 25 18:16:49 2002 +0000

description:
Proper usage of HAVE_CONFIG_H.

diffstat:

 usr.bin/elf2ecoff/elf2ecoff.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 9b6ac23c9aa0 -r 80aa91532ba6 usr.bin/elf2ecoff/elf2ecoff.c
--- a/usr.bin/elf2ecoff/elf2ecoff.c     Thu Apr 25 18:11:53 2002 +0000
+++ b/usr.bin/elf2ecoff/elf2ecoff.c     Thu Apr 25 18:16:49 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf2ecoff.c,v 1.19 2002/03/24 19:19:29 bouyer Exp $    */
+/*     $NetBSD: elf2ecoff.c,v 1.20 2002/04/25 18:16:49 tv Exp $        */
 
 /*
  * Copyright (c) 1997 Jonathan Stone
@@ -37,6 +37,10 @@
    net-bootable kernels for machines (e.g., DECstation and Alpha) which
    only support the ECOFF object file format. */
 
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <sys/types.h>
 #include <err.h>
 #include <errno.h>
@@ -49,11 +53,6 @@
 #include <string.h>
 #include <limits.h>
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-
 #define        ISLAST(p)       (p->n_un.n_name == 0 || p->n_un.n_name[0] == 0)
 
 struct sect {



Home | Main Index | Thread Index | Old Index