chapel-lang/chapel — pull request #410 by bradcray (2014-09-13 04:15:46+00:00)
Title: Fix glob for CCE

[approved by @mppf]

This commit comments out the #define of _FILE_OFFSET_BITS from
sys_basic.h because it has been causing portability issues for
various file-related routines like dirent.h and glob.h. The
latest issue is that an #include of glob.h for the Cray CCE
compiler breaks compilation. I think this was also the cause
of the complexity in chpldirent.h that I inserted to get it
compiling in all Cray configurations (and future work should
try backing out those changes; but I wanted to take things
one step at a time).

Michael was worried that this would break 32-bit builds, but I'm not
seeing that. As I understand it, his original rationale for this was
to guarantee support for files larger than 4GB. If/when we get to
needing that, we can reconsider this change.