mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
6781583: Hotspot build fails on linux 64 bit platform with gcc 4.3.2
Fixed the wrong cast between types since more restrictions are imposed by gcc 4.3.2 Reviewed-by: jcoomes, acorn, phh, never
This commit is contained in:
parent
1362b9fd1d
commit
f05b009ce8
16 changed files with 76 additions and 49 deletions
|
@ -34,17 +34,6 @@
|
|||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#undef bzero
|
||||
inline void bzero(void *b, int len) { memset(b,0,len); }
|
||||
#undef bcopy
|
||||
inline void bcopy(const void *s, void *d, size_t len) { memmove(d,s,len); }
|
||||
#undef bcmp
|
||||
inline int bcmp(const void *s,const void *t,int len) { return memcmp(s,t,len);}
|
||||
extern "C" unsigned long strtoul(const char *s, char **end, int base);
|
||||
|
||||
// Definition for sys_errlist varies from Sun 4.1 & Solaris.
|
||||
// We use the new Solaris definition.
|
||||
#include <string.h>
|
||||
|
||||
// Access to the C++ class virtual function pointer
|
||||
// Put the class in the macro
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue