aboutsummaryrefslogtreecommitdiff
path: root/src/include/plibc.h
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-12-22 14:15:01 +0000
committerLRN <lrn1986@gmail.com>2013-12-22 14:15:01 +0000
commit7bd83bdbb22f9672050731f12d9a6b216c47659f (patch)
tree26fe717547aef33c5b3ec7ebf359badfbd9658f4 /src/include/plibc.h
parentdaed7f922eac6b057bc972df35c70b922026ac2d (diff)
downloadgnunet-7bd83bdbb22f9672050731f12d9a6b216c47659f.tar.gz
gnunet-7bd83bdbb22f9672050731f12d9a6b216c47659f.zip
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)
Diffstat (limited to 'src/include/plibc.h')
-rw-r--r--src/include/plibc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/plibc.h b/src/include/plibc.h
index 0ce666b3f..a58735260 100644
--- a/src/include/plibc.h
+++ b/src/include/plibc.h
@@ -22,7 +22,7 @@
22 * @brief PlibC header 22 * @brief PlibC header
23 * @attention This file is usually not installed under Unix, 23 * @attention This file is usually not installed under Unix,
24 * so ship it with your application 24 * so ship it with your application
25 * @version $Revision: 151 $ 25 * @version $Revision$
26 */ 26 */
27 27
28#ifndef _PLIBC_H_ 28#ifndef _PLIBC_H_
@@ -70,7 +70,7 @@ extern "C" {
70/* Convert LARGE_INTEGER to double */ 70/* Convert LARGE_INTEGER to double */
71#define Li2Double(x) ((double)((x).HighPart) * 4.294967296E9 + \ 71#define Li2Double(x) ((double)((x).HighPart) * 4.294967296E9 + \
72 (double)((x).LowPart)) 72 (double)((x).LowPart))
73#ifndef __MINGW64_VERSION_MAJOR 73#ifndef HAVE_DECL__STATI64
74struct _stati64 74struct _stati64
75{ 75{
76 _dev_t st_dev; 76 _dev_t st_dev;
@@ -517,6 +517,8 @@ unsigned plibc_get_handle_count();
517 517
518typedef void (*TPanicProc) (int, char *); 518typedef void (*TPanicProc) (int, char *);
519void plibc_set_panic_proc(TPanicProc proc); 519void plibc_set_panic_proc(TPanicProc proc);
520void plibc_set_stat_size_size(int iLength);
521void plibc_set_stat_time_size(int iLength);
520 522
521int flock(int fd, int operation); 523int flock(int fd, int operation);
522int fsync(int fildes); 524int fsync(int fildes);