Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-06-18 14:01:33 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-06-18 14:01:33 +0400
commit700f8d590255ecb128cb67a10a3c6629fccc6924 (patch)
tree4ff50265814d1a610cf9ba930a937ee5d7a74ad9 /winsup
parent943072f45ca34caf7b55db16f412bed94f7c27bc (diff)
* gmon.c: Drop gratuitous inclusion of strings.h. Remove __MINGW32__
around definition of bzero.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/gmon.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index b6e0a1090..cc7245fe2 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
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.
(EXTRA_DLL_OFILES): Remove.
(DLL_OFILES): Remove EXTRA_DLL_OFILES.
diff --git a/winsup/cygwin/gmon.c b/winsup/cygwin/gmon.c
index 139aa4482..96b1189ee 100644
--- a/winsup/cygwin/gmon.c
+++ b/winsup/cygwin/gmon.c
@@ -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};