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

This commit is contained in:
simonb 2001-07-09 00:58:22 +00:00
parent 9bcd87074c
commit 1704d52d02
1 changed files with 4 additions and 3 deletions

View File

@ -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>
#include <string.h>
#ifdef REALLY_SET_PROGNAME
#include <string.h>
extern const char *__progname;
#endif