[Bug 74] New: Use of sig_atomic_t breaks SunOS4 compile

Todd C. Miller Todd.Miller at courtesan.com
Sat Jan 19 04:22:57 EST 2002


In message <20020118172537.5ECB0EA46 at shitei.mindrot.org>
	so spake  (bugzilla-daemon):

> The use of sig_atomic_t in clientloop.c, serverloop.c, and sshd.c causes
> compilation to bomb on SunOS 4.1.4 where that type is not defined.  
> Markus added it on November 22.  Should the use of the type be removed
> or should there be a configure test to add the typedef if it is not found?

A configure.in test should be added.  Perhaps something like this

AC_CHECK_TYPES([sig_atomic_t], , [AC_DEFINE(sig_atomic_t, int, [Define to `int' if <signal.h> does not define.])], [#include <sys/types.h>
#include <signal.h>])

 - todd



More information about the openssh-unix-dev mailing list