Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Don't need to include <string.h> unless REALLY_...



details:   https://anonhg.NetBSD.org/src/rev/5c2aabfd0435
branches:  trunk
changeset: 512295:5c2aabfd0435
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Jul 09 00:58:22 2001 +0000

description:
Don't need to include <string.h> unless REALLY_SET_PROGNAME is true.

diffstat:

 lib/libc/gen/setprogname.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 521baaee7b84 -r 5c2aabfd0435 lib/libc/gen/setprogname.c
--- a/lib/libc/gen/setprogname.c        Mon Jul 09 00:57:58 2001 +0000
+++ b/lib/libc/gen/setprogname.c        Mon Jul 09 00:58:22 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setprogname.c,v 1.1 2001/02/19 22:13:23 cgd Exp $ */
+/* $NetBSD: setprogname.c,v 1.2 2001/07/09 00:58:22 simonb Exp $ */
 
 /*
  * Copyright (c) 2001 Christopher G. Demetriou
@@ -36,16 +36,17 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: setprogname.c,v 1.1 2001/02/19 22:13:23 cgd Exp $");
+__RCSID("$NetBSD: setprogname.c,v 1.2 2001/07/09 00:58:22 simonb Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 /* In NetBSD, the program name is set by crt0.  It can't be overridden. */
 #undef REALLY_SET_PROGNAME
 
 #include <stdlib.h>
+
+#ifdef REALLY_SET_PROGNAME
 #include <string.h>
 
-#ifdef REALLY_SET_PROGNAME
 extern const char *__progname;
 #endif
 



Home | Main Index | Thread Index | Old Index