I think there is an error in CMakeLists.txt on line 84 of the trunk version:
81 if (HAVE_OPEN64)
82 add_definitions(-DHAVE_LSEEK64)
83 endif (HAVE_OPEN64)
84 if (HAVE_OPEN64)
85 add_definitions(-DHAVE_LSEEK64)
86 endif (HAVE_LSEEK64)
it should be:
81 if (HAVE_OPEN64)
82 add_definitions(-DHAVE_LSEEK64)
83 endif (HAVE_OPEN64)
84 if (HAVE_LSEEK64)
85 add_definitions(-DHAVE_LSEEK64)
86 endif (HAVE_LSEEK64)
I would think that it should be this:
These are only used in the adf routine ADF_internals.c