Skip to content

Commit 91d8aac

Browse files
committed
.
1 parent 696b98f commit 91d8aac

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

FerrisStreams/FerrisPosix.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define _ALREADY_INCLUDED_LIBFERRISSTREAMS_STREAMS_POSIX_H_
3333

3434
#include <sys/mman.h>
35-
#include <iosfwd>
35+
#include <ios>
3636

3737
int ferris_madvise(void *addr, size_t length, int advice);
3838
bool isBufferAllZero( const void* buffervp, std::streamsize size );

FerrisStreams/Streams.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050

5151
using namespace std;
5252

53+
#ifndef MREMAP_MAYMOVE
54+
#define MREMAP_MAYMOVE 0
55+
#endif
5356

5457
namespace Ferris
5558
{
@@ -2792,7 +2795,7 @@ class FERRISEXP_DLLLOCAL basic_mmap_streambuf
27922795
void* p = mremap( this->buffer,
27932796
this->getBufSize(),
27942797
newSize, MREMAP_MAYMOVE );
2795-
2798+
27962799
streamsize x = lseek( fd, 0, SEEK_CUR );
27972800
if( x > ShouldBeEndOfFile )
27982801
{

Portfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ post-extract {
6060

6161

6262
configure.args
63-
configure.cflags-append -g -mmacosx-version-min=10.7
63+
configure.cflags-append -g -mmacosx-version-min=10.7 -DMAC
64+
configure.cxxflags-append -g -mmacosx-version-min=10.7 -DMAC
6465
configure.ldflags-append -lintl -mmacosx-version-min=10.7
6566

0 commit comments

Comments
 (0)