#$d_strerror_r HAS_STRERROR_R /**/
#define STRERROR_R_PROTO $strerror_r_proto /**/
+/* HAS_STRLCAT:
+ * This symbol, if defined, indicates that the strlcat () routine is
+ * available to do string concatenation.
+ */
+#$d_strlcat HAS_STRLCAT /**/
+
+/* HAS_STRLCPY:
+ * This symbol, if defined, indicates that the strlcpy () routine is
+ * available to do string copying.
+ */
+#$d_strlcpy HAS_STRLCPY /**/
+
/* HAS_STRTOLD:
* This symbol, if defined, indicates that the strtold routine is
* available to convert strings to long doubles.
/* PERL_MALLOC_WRAP:
* This symbol, if defined, indicates that we'd like malloc wrap checks.
*/
-#$usemallocwrap PERL_MALLOC_WRAP /**/
+#$usemallocwrap PERL_MALLOC_WRAP /**/
/* MYMALLOC:
* This symbol, if defined, indicates that we're using our own malloc.
*/
#$d_strftime HAS_STRFTIME /**/
-/* HAS_STRLCAT
- * This symbol, if defined, indicates that the strlcat routine is
- * available to do string concatenation.
- */
-#$d_strlcat HAS_STRLCAT /**/
-
-/* HAS_STRLCPY:
- * This symbol, if defined, indicates that the strlcpy routine is
- * available to do string copying.
- */
-#$d_strlcpy HAS_STRLCPY /**/
-
/* HAS_SYSCALL_PROTO:
* This symbol, if defined, indicates that the system provides
* a prototype for the syscall() function. Otherwise, it is up
# endif
#endif
+/* H.Merijn Brand [ 31 Oct 2004 ]
+ * Not (yet) used at top level, but mention them for metaconfig */
+#ifdef HAS_STRLCAT
+# define STRNCAT strlcat
+#else
+# define STRNCAT strncat
+#endif
+#ifdef HAS_STRLCPY
+# define STRNCPY strlcpy
+#else
+# define STRNCPY strncpy
+#endif
+
/* Mention I8SIZE, U8SIZE, I16SIZE, U16SIZE, I32SIZE, U32SIZE,
I64SIZE, and U64SIZE here so that metaconfig pulls them in. */