aboutsummaryrefslogtreecommitdiff
path: root/time/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/strftime.c')
-rw-r--r--time/strftime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/time/strftime.c b/time/strftime.c
index 8c50a7d..7dbddea 100644
--- a/time/strftime.c
+++ b/time/strftime.c
@@ -80,7 +80,9 @@ extern char *tzname[];
# include <stdlib.h>
# include <string.h>
#else
-# define memcpy(d, s, n) bcopy ((s), (d), (n))
+# ifndef HAVE_MEMCPY
+# define memcpy(d, s, n) bcopy ((s), (d), (n))
+# endif
#endif
#ifndef __P