Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Instead of including <a.out.h> to get at "struc...



details:   https://anonhg.NetBSD.org/src/rev/63ecf446985d
branches:  trunk
changeset: 746802:63ecf446985d
user:      he <he%NetBSD.org@localhost>
date:      Thu Aug 20 08:30:04 2009 +0000

description:
Instead of including <a.out.h> to get at "struct nlist" (with a comment
to explain it), include <nlist.h> instead, so that our mips ports don't
error out in the absence of aout_machdep.h.

diffstat:

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

diffs (54 lines):

diff -r 3655bc574ae7 -r 63ecf446985d lib/libc/gen/nlist.c
--- a/lib/libc/gen/nlist.c      Thu Aug 20 08:12:05 2009 +0000
+++ b/lib/libc/gen/nlist.c      Thu Aug 20 08:30:04 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist.c,v 1.21 2003/08/07 16:42:54 agc Exp $ */
+/* $NetBSD: nlist.c,v 1.22 2009/08/20 08:30:04 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.c,v 1.21 2003/08/07 16:42:54 agc Exp $");
+__RCSID("$NetBSD: nlist.c,v 1.22 2009/08/20 08:30:04 he Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -81,7 +81,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <a.out.h>                     /* for 'struct nlist' declaration */
+#include <nlist.h>
 
 #if 0
 #ifdef __weak_alias
diff -r 3655bc574ae7 -r 63ecf446985d lib/libc/gen/nlist_aout.c
--- a/lib/libc/gen/nlist_aout.c Thu Aug 20 08:12:05 2009 +0000
+++ b/lib/libc/gen/nlist_aout.c Thu Aug 20 08:30:04 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_aout.c,v 1.19 2009/08/16 03:56:26 matt Exp $ */
+/* $NetBSD: nlist_aout.c,v 1.20 2009/08/20 08:30:04 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.19 2009/08/16 03:56:26 matt Exp $");
+__RCSID("$NetBSD: nlist_aout.c,v 1.20 2009/08/20 08:30:04 he Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -82,7 +82,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <a.out.h>                     /* for 'struct nlist' declaration */
+#include <nlist.h>
 
 #include "nlist_private.h"
 



Home | Main Index | Thread Index | Old Index