cmake HAVE_SPLICE examples

monkey/monkey plugins/logger/CMakeLists.txt :7

check_c_source_compiles("
  #define _GNU_SOURCE
  #include <stdio.h>
  #include <fcntl.h>
  int main() {
     return splice(0, NULL, 1,
            NULL, 1, SPLICE_F_MOVE);
  }" HAVE_SPLICE)

fluent/fluent-bit lib/monkey/plugins/logger/CMakeLists.txt :7

check_c_source_compiles("
  #define _GNU_SOURCE
  #include <stdio.h>
  #include <fcntl.h>
  int main() {
     return splice(0, NULL, 1,
            NULL, 1, SPLICE_F_MOVE);
  }" HAVE_SPLICE)