4 be manually configured (after ilmid has
5 registered the "official" address) - HACK */
8 +# include <string.h> /* For prototype of `strlen'. */
10 +/* Evaluate to actual length of the `sockaddr_un' structure. */
11 +# define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) \
12 + + strlen ((ptr)->sun_path))
15 extern SysGroup *remsys;
16 extern State ilmi_state;
17 static short atm_itf = -1; /* bad value */
22 #include <sys/ioctl.h>
23 #include <sys/param.h> /* for OPEN_MAX */
26 -#else /* ugly hack to make it compile on RH 4.2 - WA */
28 -#include <linux/poll.h>
30 -_syscall3(int,poll,struct pollfd *,ufds,unsigned int,nfds,int,timeout);
33 #include <linux/types.h>
34 #include <linux/atmioc.h>
35 --- a/src/sigd/atmsigd.c
36 +++ b/src/sigd/atmsigd.c
37 @@ -517,7 +517,7 @@ int main(int argc,char **argv)
41 - (void) on_exit(trace_on_exit,NULL);
42 + (void) atexit(trace_on_exit);
45 for (sig = entities; sig; sig = sig->next) stop_saal(&sig->saal);
46 --- a/src/test/align.c
47 +++ b/src/test/align.c
50 #include <sys/types.h>
51 #include <sys/socket.h>
52 -#include <sys/errno.h>