Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Actually, when we really need the a.out defines...



details:   https://anonhg.NetBSD.org/src/rev/9b10c44af5aa
branches:  trunk
changeset: 746803:9b10c44af5aa
user:      he <he%NetBSD.org@localhost>
date:      Thu Aug 20 10:19:36 2009 +0000

description:
Actually, when we really need the a.out defines from <nlist.h>, we
need to include <a.out.h> anyway.  Move it inside #ifdef NLIST_AOUT.

diffstat:

 lib/libc/gen/nlist_aout.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 63ecf446985d -r 9b10c44af5aa lib/libc/gen/nlist_aout.c
--- a/lib/libc/gen/nlist_aout.c Thu Aug 20 08:30:04 2009 +0000
+++ b/lib/libc/gen/nlist_aout.c Thu Aug 20 10:19:36 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_aout.c,v 1.20 2009/08/20 08:30:04 he Exp $ */
+/* $NetBSD: nlist_aout.c,v 1.21 2009/08/20 10:19:36 he Exp $ */
 
 /*
  * Copyright (c) 1989, 1993
@@ -66,7 +66,7 @@
 #if 0
 static char sccsid[] = "@(#)nlist.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: nlist_aout.c,v 1.20 2009/08/20 08:30:04 he Exp $");
+__RCSID("$NetBSD: nlist_aout.c,v 1.21 2009/08/20 10:19:36 he Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -82,11 +82,11 @@
 #include <string.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <nlist.h>
 
 #include "nlist_private.h"
 
 #ifdef NLIST_AOUT
+#include <a.out.h>
 #include <sys/exec_aout.h>
 
 int



Home | Main Index | Thread Index | Old Index