aboutsummaryrefslogblamecommitdiff
path: root/net/csync2/files/patch-getrealfn.c
blob: b2e9a70a529371b922cc3e1521bfe1fc632b7730 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                           
--- getrealfn.c (revision 384)
+++ getrealfn.c (working copy)
@@ -27,7 +27,7 @@

 static char *my_get_current_dir_name()
 {
-#ifdef __CYGWIN__
+#if defined __CYGWIN__ || defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__
 	char *r = malloc(1024);
 	if (!getcwd(r, 1024))
 		strcpy(r, "/__PATH_TO_LONG__");