Hi Christian,
here's a small portability fix for obexftp that allows compilation on OS
X.
Alexander
Homepage: http://www.sensi.org/~ak/
diff -uNr obexftp-0.19/obexftp/cache.c obexftp-0.19.new/obexftp/cache.c
--- obexftp-0.19/obexftp/cache.c 2006-01-11 19:09:25.000000000 +0200
+++ obexftp-0.19.new/obexftp/cache.c 2006-05-01 19:48:35.000000000 +0300
@@ -286,14 +286,14 @@
if (h) sscanf (h, "size=\"%200[^\"]\"", size);
if (!strcmp("folder", tagname)) {
- dir->mode = __S_IFDIR | 0755;
+ dir->mode = S_IFDIR | 0755;
strcpy(dir->name, name);
dir->mtime = atotime(mod);
dir->size = 0;
dir++;
}
if (!strcmp("file", tagname)) {
- dir->mode = __S_IFREG | 0644;
+ dir->mode = S_IFREG | 0644;
strcpy(dir->name, name);
dir->mtime = atotime(mod);
i = 0;