Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16526
Modified Files: Tag: devel_0_39 d_soundfile.c SConscript Log Message: port of jmz's >2gb soundfile fix
Index: SConscript =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/SConscript,v retrieving revision 1.1.4.27 retrieving revision 1.1.4.28 diff -C2 -d -r1.1.4.27 -r1.1.4.28 *** SConscript 4 Oct 2005 16:42:33 -0000 1.1.4.27 --- SConscript 4 Oct 2005 22:23:56 -0000 1.1.4.28 *************** *** 191,194 **** --- 191,195 ---- defs.append('HAVE_LIBFFTW3F')
+ ###################################################################### # *************** *** 452,455 **** --- 453,468 ---- pdenv.Append(CPPDEFINES='HAVE_ALLOCA')
+ + if conf.TryCompile("""#define _LARGEFILE64_SOURCE + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> + int main() + { + open64(0,0); + }""", ".c"): + pdenv.Append(CPPDEFINES='_LARGEFILE64_SOURCE') + + pdenv=conf.Finish()
Index: d_soundfile.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v retrieving revision 1.4.4.11.2.5 retrieving revision 1.4.4.11.2.6 diff -C2 -d -r1.4.4.11.2.5 -r1.4.4.11.2.6 *** d_soundfile.c 17 Sep 2005 22:35:07 -0000 1.4.4.11.2.5 --- d_soundfile.c 4 Oct 2005 22:23:55 -0000 1.4.4.11.2.6 *************** *** 31,34 **** --- 31,39 ---- #define MAXSFCHANS 64
+ #ifdef _LARGEFILE64_SOURCE + # define open open64 + # define lseek lseek64 + #endif + /***************** soundfile header structures ************************/