[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31676 - in gnunet: . src/include src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31676 - in gnunet: . src/include src/util |
Date: |
Sun, 22 Dec 2013 15:15:01 +0100 |
Author: LRN
Date: 2013-12-22 15:15:01 +0100 (Sun, 22 Dec 2013)
New Revision: 31676
Modified:
gnunet/configure.ac
gnunet/src/include/plibc.h
gnunet/src/util/winproc.c
Log:
Use newer plibc, adjust the code as needed
Use plibc_set_stat_size_size
Use plibc_set_stat_time_size
Update plibc header
Check for _stati64 (needed due to the new plibc header)
Modified: gnunet/configure.ac
===================================================================
--- gnunet/configure.ac 2013-12-22 13:55:17 UTC (rev 31675)
+++ gnunet/configure.ac 2013-12-22 14:15:01 UTC (rev 31676)
@@ -210,6 +210,8 @@
,
[#include <time.h>])
+AC_CHECK_DECLS([_stati64])
+
# 'save' libs; only those libs found so far will be
# linked against _everywhere_. For the others, we
# will be more selective!
Modified: gnunet/src/include/plibc.h
===================================================================
--- gnunet/src/include/plibc.h 2013-12-22 13:55:17 UTC (rev 31675)
+++ gnunet/src/include/plibc.h 2013-12-22 14:15:01 UTC (rev 31676)
@@ -22,7 +22,7 @@
* @brief PlibC header
* @attention This file is usually not installed under Unix,
* so ship it with your application
- * @version $Revision: 151 $
+ * @version $Revision$
*/
#ifndef _PLIBC_H_
@@ -70,7 +70,7 @@
/* Convert LARGE_INTEGER to double */
#define Li2Double(x) ((double)((x).HighPart) * 4.294967296E9 + \
(double)((x).LowPart))
-#ifndef __MINGW64_VERSION_MAJOR
+#ifndef HAVE_DECL__STATI64
struct _stati64
{
_dev_t st_dev;
@@ -517,6 +517,8 @@
typedef void (*TPanicProc) (int, char *);
void plibc_set_panic_proc(TPanicProc proc);
+void plibc_set_stat_size_size(int iLength);
+void plibc_set_stat_time_size(int iLength);
int flock(int fd, int operation);
int fsync(int fildes);
Modified: gnunet/src/util/winproc.c
===================================================================
--- gnunet/src/util/winproc.c 2013-12-22 13:55:17 UTC (rev 31675)
+++ gnunet/src/util/winproc.c 2013-12-22 14:15:01 UTC (rev 31676)
@@ -147,7 +147,8 @@
plibc_initialized ();
plibc_set_panic_proc (plibc_panic);
ret = plibc_init_utf8 ("GNU", PACKAGE, 1);
-
+ plibc_set_stat_size_size (8);
+ plibc_set_stat_time_size (4);
/* don't load other DLLs twice */
if (hNTDLL)
return ret;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31676 - in gnunet: . src/include src/util,
gnunet <=