diff options
author | Surya Prakki <Surya.Prakki@Sun.COM> | 2010-05-12 00:20:48 -0700 |
---|---|---|
committer | Surya Prakki <Surya.Prakki@Sun.COM> | 2010-05-12 00:20:48 -0700 |
commit | 82333da930cddbdbdfe38acf480e9c35fb875d2d (patch) | |
tree | 8c5c187cb5072eeb9936c4d4dd8d3928c04eaa7b /usr/src/common/util/memset.c | |
parent | 3661c01dca7430b985a4a5fc1ea8fa1764068940 (diff) | |
download | illumos-joyent-82333da930cddbdbdfe38acf480e9c35fb875d2d.tar.gz |
6932417 Sparc: Aten Build20.0 snv_133 failed under -xO3 w/ '_memset' undefined symbol (building libgenunix)
Diffstat (limited to 'usr/src/common/util/memset.c')
-rw-r--r-- | usr/src/common/util/memset.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr/src/common/util/memset.c b/usr/src/common/util/memset.c index 9236d49f3b..dce59538e8 100644 --- a/usr/src/common/util/memset.c +++ b/usr/src/common/util/memset.c @@ -20,22 +20,24 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved. */ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ -#pragma ident "%Z%%M% %I% %E% SMI" - #if !defined(_KMDB) && !defined(_BOOT) && !defined(_KERNEL) -#pragma weak _memset = memset - #include "lint.h" + #endif /* !_KMDB && !_BOOT && !_KERNEL */ +/* + * The SunStudio compiler may generate calls to _memset; So we + * need to make sure that the correct symbol exists for these calls. + */ +#pragma weak _memset = memset + #include <sys/types.h> #if defined(_KERNEL) |