Browse Source

Workarond of missing off_t

master
Artyom Beilis 8 years ago
parent
commit
98977e6cfd
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      CMakeLists.txt
  2. +1
    -0
      private/http_file_buffer.h

+ 1
- 0
CMakeLists.txt View File

@@ -251,6 +251,7 @@ check_cxx_source_compiles(
#define _FILE_OFFSET_BITS 64
#endif
#include <stdio.h>
#include <stdlib.h>
int main()
{
char is_big[sizeof(off_t) >= 8 ? 1 : -1];


+ 1
- 0
private/http_file_buffer.h View File

@@ -12,6 +12,7 @@
#endif
#include <cppcms/config.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef CPPCMS_HAVE_FSEEKO
// nothing
#elif defined(CPPCMS_HAVE_FSEEKI64)


Loading…
Cancel
Save