source: net-ftp/oftpd/files/oftpd-0.3.7-pthread-cancel.patch @ f3987e6

Revision f3987e6, 797 bytes checked in by Mario Fetka <mario.fetka@…>, 11 months ago (diff)

Bump

  • Property mode set to 100644
  • configure.in

    in order for pthread_cancel to work (which oftpd uses to close inactive
    connections), most ports need to load libgcc_s.so.1.  but when oftpd uses
    a chroot, that file is no longer available (in fact, it'll try to load it
    from the chroot itself which is kind of a security issue).  so have the
    code proactively link against libgcc_s when it is found so that the lib
    is already loaded when we cancel.
    
    a b AC_FUNC_STRFTIME 
    3939AC_CHECK_FUNCS(getcwd gettimeofday select socket strerror localtime_r gmtime_r) 
    4040dnl AC_CHECK_LIB(pthread, pthread_create) 
    4141dnl AC_SEARCH_LIBS(pthread_create, [ pthread pthreads thread threads ]) 
     42AC_CHECK_LIB(gcc_s, _Unwind_Resume) 
    4243AC_SEARCH_LIBS(socket, socket) 
    4344AC_SEARCH_LIBS(inet_ntoa, nsl) 
    4445AC_CHECK_FUNCS(inet_aton) 
Note: See TracBrowser for help on using the repository browser.