Whamcloud - gitweb
LU-15074 build: Use strlcpy if strscpy is not available
[fs/lustre-release.git] / lnet / lnet / config.c
index 57dd989..4eabbd7 100644 (file)
@@ -51,6 +51,10 @@ static int lnet_tbnob = 0;                   /* track text buf allocation */
 #define SPACESTR " \t\v\r\n"
 #define DELIMITERS ":()[]"
 
+#ifndef HAVE_STRSCPY
+#define strscpy(s1, s2, sz)    strlcpy((s1), (s2), (sz))
+#endif
+
 static void
 lnet_syntax(const char *name, const char *str, int offset, int width)
 {