libcephfs: ignore missing offset64 definition

on apple.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
compat: enable lseek64 alias

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
statfs: include headers for statfs structs

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
buffer: remove darwin portability cruft

valloc conflicts with an existing call, and none of these macros are
actually used in buffer.h. The DARWIN check isn't valid either since
this is an installed header and that depends on acconfig.h

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
make: add libcommon for missing symbols

On OSX without linking in libcommon at the end of these make targets
there is a missing reference to pipe_cloexec, even though the dependency
is present indirectly through libglobal.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
linux_version: build on all platforms

This linux version check is used in FileJournal to check about write
caching behavior. This is a temporary fix that will result in the
failure path and a warning about writing caching being turned on until
methods for OSX/FreeBSD/Windows can be found to find the same
information.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
pipe: add compat for TEMP_FAILURE_RETRY symbol

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Merge pull request #980 from ceph/port/misc

Misc portability patches

Reviewed-by: Sage Weil <sage@inktank.com>