Skip to content

Commit

Permalink
Disable clock_gettime for macOS (#159)
Browse files Browse the repository at this point in the history
Disabled clock_gettime support macOS to provide backwards compatibilty
with macOS 10.11.
  • Loading branch information
pfifer committed Nov 20, 2017
1 parent 4450972 commit dca07b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ if [ ! -d "curl-7.47.0" ]; then

conf --disable-shared --disable-ldap --disable-ldaps \
--enable-threaded-resolver --disable-debug --without-libssh2 --without-ca-bundle --with-ssl="${INSTALL_DIR}" --without-libidn
if [[ $(uname) == 'Darwin' ]]; then
#
# Apply a patch for macOS that should prevent curl from trying to use clock_gettime
# This is a temporary work around for https://github.com/awslabs/amazon-kinesis-producer/issues/117
# until dependencies are updated
#
sed -Ei .bak 's/#define HAVE_CLOCK_GETTIME_MONOTONIC 1//' lib/curl_config.h
fi
make -j
make install

Expand Down

0 comments on commit dca07b4

Please sign in to comment.