projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e984ba
)
Added symbian support.
author
Pekka Riikonen
<priikone@silcnet.org>
Sun, 13 May 2007 15:30:37 +0000
(15:30 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sun, 13 May 2007 15:30:37 +0000
(15:30 +0000)
lib/silcutil/silcfileutil.c
patch
|
blob
|
history
diff --git
a/lib/silcutil/silcfileutil.c
b/lib/silcutil/silcfileutil.c
index e824a2f12b886d51bc39c43dc573179b6a14d8b0..02620b04b877ee1a91829b24d3bd2cdf8aa2cb45 100644
(file)
--- a/
lib/silcutil/silcfileutil.c
+++ b/
lib/silcutil/silcfileutil.c
@@
-180,11
+180,15
@@
SilcUInt64 silc_file_size(const char *filename)
int ret;
struct stat stats;
-#ifndef SILC_WIN32
+#ifdef SILC_WIN32
+ ret = stat(filename, &stats);
+#endif /* SILC_WIN32 */
+#ifdef SILC_UNIX
ret = lstat(filename, &stats);
-#else
+#endif /* SILC_UNIX */
+#ifdef SILC_SYMBIAN
ret = stat(filename, &stats);
-#endif
+#endif
/* SILC_SYMBIAN */
if (ret < 0)
return 0;