projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge with 1.6
[gnulib.git]
/
lib
/
putenv.c
diff --git
a/lib/putenv.c
b/lib/putenv.c
index
512878c
..
d1fb726
100644
(file)
--- a/
lib/putenv.c
+++ b/
lib/putenv.c
@@
-26,8
+26,12
@@
extern int errno;
#if defined(STDC_HEADERS) || defined(USG)
#include <string.h>
#if defined(STDC_HEADERS) || defined(USG)
#include <string.h>
+#ifndef index
#define index strchr
#define index strchr
+#endif
+#ifndef bcopy
#define bcopy(s, d, n) memcpy((d), (s), (n))
#define bcopy(s, d, n) memcpy((d), (s), (n))
+#endif
#else /* not (STDC_HEADERS or USG) */
#include <strings.h>
#endif /* STDC_HEADERS or USG */
#else /* not (STDC_HEADERS or USG) */
#include <strings.h>
#endif /* STDC_HEADERS or USG */