Source

ocaml-core / base / core / lib / discover.sh

The branch 'bash' does not exist.
Diff from to

File base/core/lib/discover.sh

-#!/bin/bash
+#!/usr/bin/env bash
 set -e -u -o pipefail
 
 ML_OUTFILE="${1:?Usage: discover.sh ML_OUTFILE C_OUTFILE}"
 #include <sys/socket.h>
 # $LINENO "$(basename "${BASH_SOURCE[0]}")"
 int main () {
-  $(cpp_test LINUX_EXT "defined(LINUX_EXT)")
+  $(cpp_test LINUX_EXT    "defined(LINUX_EXT)")
+  $(cpp_test POSIX_TIMERS "defined(POSIX_TIMERS)")
   $(if [[ ${WORD_SIZE} = 64 ]]; then
        echo 'printf ("DEFINE ARCH_SIXTYFOUR\n");';
     fi)
 
   $(cpp_test FDATASYNC \
      "defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO > 0")
+
   return 0;
 }
 EOF