* gmon.c: Drop gratuitous inclusion of strings.h. Remove __MINGW32__

around definition of bzero.
This commit is contained in:
Corinna Vinschen 2013-06-18 10:01:33 +00:00
parent 943072f45c
commit 700f8d5902
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2013-06-18 Corinna Vinschen <corinna@vinschen.de>
* gmon.c: Drop gratuitous inclusion of strings.h. Remove __MINGW32__
around definition of bzero.
2013-06-18 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (VPATH): Drop CONFIG_DIR.

View File

@ -39,7 +39,6 @@ static char rcsid[] = "$OpenBSD: gmon.c,v 1.8 1997/07/23 21:11:27 kstailey Exp $
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <strings.h>
#ifndef __MINGW32__
#include <unistd.h>
#include <sys/param.h>
@ -57,10 +56,8 @@ static char rcsid[] = "$OpenBSD: gmon.c,v 1.8 1997/07/23 21:11:27 kstailey Exp $
#define MINUS_ONE_P (-1)
#endif
#ifdef __MINGW32__
#include <string.h>
#define bzero(ptr,size) memset (ptr, 0, size);
#endif
struct gmonparam _gmonparam = { GMON_PROF_OFF, NULL, 0, NULL, 0, NULL, 0, 0L,
0, 0, 0, 0};