summaryrefslogtreecommitdiff
path: root/usr/src/cmd/filebench/common/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/filebench/common/utils.h')
-rw-r--r--usr/src/cmd/filebench/common/utils.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr/src/cmd/filebench/common/utils.h b/usr/src/cmd/filebench/common/utils.h
index d2a8b655a3..cb9e39a9fc 100644
--- a/usr/src/cmd/filebench/common/utils.h
+++ b/usr/src/cmd/filebench/common/utils.h
@@ -19,15 +19,13 @@
* CDDL HEADER END
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _FB_UTILS_H
#define _FB_UTILS_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "config.h"
#include <sys/types.h>
@@ -41,6 +39,14 @@ extern "C" {
extern char *fb_stralloc(char *str);
+#ifdef sun
+#define fb_strlcat strlcat
+#define fb_strlcpy strlcpy
+#else
+extern size_t fb_strlcat(char *dst, const char *src, size_t dstsize);
+extern size_t fb_strlcpy(char *dst, const char *src, size_t dstsize);
+#endif /* sun */
+
#ifdef __cplusplus
}
#endif