Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
#!/bin/sh

# Clear PWD to force commands to recompute working directory
PWD=

# Figure out the source directory for this script
# configure.ac should be in the same place
case "$0" in
*/*) srcdir=`dirname $0`;;
*) srcdir="";;
*/* ) srcdir=`dirname "$0"` ;; # Called with path
* ) srcdir="";; # Otherwise
esac

symlink='--install --symlink'
# If install-only is explicitly requested, disbale symlink flags
case " $* " in
*" -i "*|*" --install "*)
# reset to copy missing standard auxiliary files, instead of symlinks
symlink=
;;
*" -i "* | *" --install"* ) symlink_flags="" ;;
* ) symlink_flags="--install --symlink" ;;
esac

exec ${AUTORECONF:-autoreconf} ${symlink} "$@" ${srcdir:+"$srcdir"}
exec ${AUTORECONF:-autoreconf} \
$symlink_flags \
"$@" \
$srcdir
2 changes: 1 addition & 1 deletion ext/socket/ipsocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ inetsock_cleanup(VALUE v)
}

static VALUE
current_clocktime()
current_clocktime(void)
{
VALUE clock_monotnic_const = rb_const_get(rb_mProcess, rb_intern("CLOCK_MONOTONIC"));
return rb_funcall(rb_mProcess, rb_intern("clock_gettime"), 1, clock_monotnic_const);
Expand Down