[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29963 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29963 - gnunet/src/util |
Date: |
Tue, 8 Oct 2013 11:30:24 +0200 |
Author: LRN
Date: 2013-10-08 11:30:24 +0200 (Tue, 08 Oct 2013)
New Revision: 29963
Modified:
gnunet/src/util/disk.c
Log:
Tweak the stat-calling code
Modified: gnunet/src/util/disk.c
===================================================================
--- gnunet/src/util/disk.c 2013-10-08 09:30:21 UTC (rev 29962)
+++ gnunet/src/util/disk.c 2013-10-08 09:30:24 UTC (rev 29963)
@@ -149,19 +149,17 @@
{
struct GetFileSizeData *gfsd = cls;
-#ifdef HAVE_STAT64
- struct stat64 buf;
-#else
- struct stat buf;
-#endif
+#if defined (HAVE_STAT64) && !(defined (_FILE_OFFSET_BITS) &&
_FILE_OFFSET_BITS == 64)
+ STRUCT_STAT64 buf;
-#ifdef HAVE_STAT64
if (0 != STAT64 (fn, &buf))
{
LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_DEBUG, "stat64", fn);
return GNUNET_SYSERR;
}
#else
+ struct stat buf;
+
if (0 != STAT (fn, &buf))
{
LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_DEBUG, "stat", fn);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29963 - gnunet/src/util,
gnunet <=