The following patch fixes compatibility with gcc-3.4.1 and later. To apply the patch, go into the sftpd directory and run sftpd$ patch