When trying to compile a fairly large program, I get the following:

Code:
adios_posix1.c:89: error: ‘O_LARGEFILE’ undeclared (first use in this function)
adios_posix1.c:89: error: (Each undeclared identifier is reported only once
adios_posix1.c:89: error: for each function it appears in.)
Any suggestions? I need to change something in the Makefile, which is also fairly large.

This is what I'm trying to build:
National Center for Computational Sciences » ADIOS
1.2.1

I honestly can only find unhelpful information via google.