|
From: <sv...@va...> - 2016-10-23 21:31:23
|
Author: rhyskidd
Date: Sun Oct 23 22:31:16 2016
New Revision: 16103
Log:
bzero is non-POSIX (deprecated), accordingly __bzero template required for all macOS versions. n-i-bz.
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
==============================================================================
--- trunk/coregrind/m_main.c (original)
+++ trunk/coregrind/m_main.c Sun Oct 23 22:31:16 2016
@@ -3489,6 +3489,10 @@
// skip check
return VG_(memset)(s,c,n);
}
+void __bzero(void* s, UWord n);
+void __bzero(void* s, UWord n) {
+ (void)VG_(memset)(s,0,n);
+}
void bzero(void *s, SizeT n);
void bzero(void *s, SizeT n) {
VG_(memset)(s,0,n);
@@ -4058,19 +4062,6 @@
#endif
-#if defined(VGO_darwin) && DARWIN_VERS == DARWIN_10_10
-
-/* This might also be needed for > DARWIN_10_10, but I have no way
- to test for that. Hence '==' rather than '>=' in the version
- test above. */
-void __bzero ( void* s, UWord n );
-void __bzero ( void* s, UWord n )
-{
- (void) VG_(memset)( s, 0, n );
-}
-
-#endif
-
/*--------------------------------------------------------------------*/
/*--- end ---*/
|