summaryrefslogtreecommitdiff
path: root/cmake/SnappyConfig.cmake
diff options
context:
space:
mode:
authorcostan <costan@google.com>2017-08-02 09:43:03 -0700
committerVictor Costan <pwnall@chromium.org>2017-08-02 10:56:06 -0700
commit77c12adc192ac6620a0f0d340c99149ec56a97a3 (patch)
tree24bbf43f501f96cfa8db7ded9864950f5e416c41 /cmake/SnappyConfig.cmake
parentc8049c58273d9dc02299bb441b75b4cbb3ea7917 (diff)
downloadsnappy-77c12adc192ac6620a0f0d340c99149ec56a97a3.tar.gz
snappy-77c12adc192ac6620a0f0d340c99149ec56a97a3.tar.bz2
snappy-77c12adc192ac6620a0f0d340c99149ec56a97a3.zip
Add unistd.h checks back to the CMake build.
getpagesize(), as well as its POSIX.2001 replacement sysconf(_SC_PAGESIZE), is defined in <unistd.h>. On Linux and OS X, including <sys/mman.h> is sufficient to get a definition for getpagesize(). However, this is not true for the Android NDK. This CL brings back the HAVE_UNISTD_H definition and its associated header check. This also adds a HAVE_FUNC_SYSCONF definition, which checks for the presence of sysconf(). The definition can be used later to replace getpagesize() with sysconf().
Diffstat (limited to 'cmake/SnappyConfig.cmake')
0 files changed, 0 insertions, 0 deletions