1 May 2006 19:14
patch: obexftp portability fix
Alex Kanavin <ak <at> sensi.org>
2006-05-01 17:14:22 GMT
2006-05-01 17:14:22 GMT
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
<at> <at> -286,14 +286,14 <at> <at>
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;
(Continue reading)
RSS Feed