1 --- ruby-1.8.3/configure.in.orig 2005-11-29 11:18:27.000000000 +0100
2 +++ ruby-1.8.3/configure.in 2005-11-29 11:19:46.000000000 +0100
9 +dnl AC_FUNC_SETPGRP does not work if cross compiling
10 +dnl Instead, assume we will have a prototype for setpgrp if cross compiling.
11 +if test "$cross_compiling" = no; then
14 + AC_CACHE_CHECK([whether setpgrp takes no argument], ac_cv_func_setpgrp_void,
18 + if (setpgrp(1,1) == -1)
22 +], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes)])
23 +if test $ac_cv_func_setpgrp_void = yes; then
24 + AC_DEFINE(SETPGRP_VOID, 1)