source: npl/system/netkit-ftp/patches/05-netkit-ftp-0.17-volatile.patch @ 7c410f9

Last change on this file since 7c410f9 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.2 KB
  • netkit-ftp-0.17/configure

    old new  
    193193cat <<EOF >__conftest.c
    194194#include <unistd.h>
    195195#include <signal.h>
    196 int count=0;
    197 void handle(int foo) { count++; }
     196volatile int count=0;
     197void handle(int foo) { count++; write(1,"X",1);}
    198198int main() {
    199199    int pid=getpid();
    200200    signal(SIGINT, handle);
     
    209209if (
    210210      $CC $CFLAGS  __conftest.c  -o __conftest || exit 1
    211211      ./__conftest || exit 1
    212    ) >/dev/null 2>&1; then
     212   ); then
    213213    echo 'yes'
    214214else
    215215    if (
    216216          $CC $CFLAGS -D__USE_BSD_SIGNAL __conftest.c  -o __conftest || exit 1
    217217          ./__conftest || exit 1
    218        ) >/dev/null 2>&1; then
     218       ); then
    219219        echo '-D__USE_BSD_SIGNAL'
    220220        CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL"
    221221    else
    222222        echo 'no'
    223         echo 'This package needs BSD signal semantics to run.'
    224         rm -f __conftest*
    225         exit
     223        echo '***WARNING***: This package needs BSD signal semantics to run.'
     224        echo '***WARNING***: Assuming its just ia64 buildroot breakage.'
     225        CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL"
    226226    fi
    227227fi
    228228rm -f __conftest*
Note: See TracBrowser for help on using the repository browser.