Line 0
Link Here
|
|
|
1 |
--- cvswrap.c.orig 2009-02-24 15:40:55.000000000 +0100 |
2 |
+++ cvswrap.c 2009-02-24 15:38:24.000000000 +0100 |
3 |
@@ -94,7 +94,12 @@ |
4 |
char **cvsrootp); |
5 |
static void slashfix(char *); |
6 |
static int strings_have_line(char * const *strings, const char *line); |
7 |
+#if defined(__FreeBSD__) |
8 |
+#include <osreldate.h> |
9 |
+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100 |
10 |
static char * strndup(const char *str, size_t len); |
11 |
+#endif |
12 |
+#endif |
13 |
static int timeval_diff(const struct timeval *tv1, |
14 |
const struct timeval *tv2); |
15 |
static int writebuf(int fd, const char *buf, size_t len); |
16 |
@@ -324,6 +329,9 @@ |
17 |
return (0); |
18 |
} |
19 |
|
20 |
+#if defined(__FreeBSD__) |
21 |
+#include <osreldate.h> |
22 |
+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100 |
23 |
/* |
24 |
* return: a copy of "len" bytes from byte string "str" and NULL terminate. |
25 |
*/ |
26 |
@@ -340,6 +348,8 @@ |
27 |
*(ret + len) = '\0'; |
28 |
return (ret); |
29 |
} |
30 |
+#endif |
31 |
+#endif |
32 |
|
33 |
/* |
34 |
* Wait for child cvs process to exit. |