diff options
author | LRN <lrn1986@gmail.com> | 2013-12-22 14:15:01 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-22 14:15:01 +0000 |
commit | 7bd83bdbb22f9672050731f12d9a6b216c47659f (patch) | |
tree | 26fe717547aef33c5b3ec7ebf359badfbd9658f4 /src/include/plibc.h | |
parent | daed7f922eac6b057bc972df35c70b922026ac2d (diff) | |
download | gnunet-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.h | 6 |
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 |
74 | struct _stati64 | 74 | struct _stati64 |
75 | { | 75 | { |
76 | _dev_t st_dev; | 76 | _dev_t st_dev; |
@@ -517,6 +517,8 @@ unsigned plibc_get_handle_count(); | |||
517 | 517 | ||
518 | typedef void (*TPanicProc) (int, char *); | 518 | typedef void (*TPanicProc) (int, char *); |
519 | void plibc_set_panic_proc(TPanicProc proc); | 519 | void plibc_set_panic_proc(TPanicProc proc); |
520 | void plibc_set_stat_size_size(int iLength); | ||
521 | void plibc_set_stat_time_size(int iLength); | ||
520 | 522 | ||
521 | int flock(int fd, int operation); | 523 | int flock(int fd, int operation); |
522 | int fsync(int fildes); | 524 | int fsync(int fildes); |