# HG changeset patch # User mas01cr # Date 1250026944 0 # Node ID 0242e5d1643cf294ec5474ace170ec9b9cf840d1 # Parent 4eedc18634f554312666487f38516328ffba085a Address portability issues in database creation Define a getpagesize() macro which returns The Right Thing on WIN32 Use Windows permissions flags in open() with O_CREAT. diff -r 4eedc18634f5 -r 0242e5d1643c audioDB-internals.h --- a/audioDB-internals.h Tue Aug 11 21:42:18 2009 +0000 +++ b/audioDB-internals.h Tue Aug 11 21:42:24 2009 +0000 @@ -4,6 +4,7 @@ #if !defined(WIN32) #include #endif +#include #include #include @@ -355,6 +356,10 @@ #define align_up(x,w) (((x) + ((1<