about summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
Diffstat (limited to 'time')
-rw-r--r--time/strftime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/time/strftime.c b/time/strftime.c
index 8c50a7dffb..7dbddeabf6 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