Date: Wed, 19 Jun 2002 02:24:44 +0200 From: "Oscar Rodriguez Galiano" <orgaliano@hotmail.com> To: freebsd-questions@FreeBSD.ORG Subject: timeout Message-ID: <F78S6oup2onvpLH0DuJ0000893b@hotmail.com>
next in thread | raw e-mail | index | archive | help
Hi! I want to use the function timeout, and in the man pages it show that this function needs the headers <sys/types.h> and <sys/systm.h> When I compile my program it returns the following error: In file included from analizador.h:2, from barrido_ping.c:1: /usr/include/sys/systm.h:333: syntax error before 'int' /usr/include/sys/systm.h:334: syntax error before 'int' /usr/include/sys/systm.h:335: syntax error before '(' In file included from analizador.h:2, from escaneo_puertos.c:1: /usr/include/sys/systm.h:333: syntax error before 'int' /usr/include/sys/systm.h:334: syntax error before 'int' /usr/include/sys/systm.h:335: syntax error before '(' i think that systm.h has some kind of incompatibility with some header or that systm.h needs some other header. *************analizador.h************** #include <sys/types.h> #include <sys/systm.h> #include <sys/socket.h> #include <sys/param.h> #include <netinet/in_systm.h> #include <netinet/in.h> #include <netinet/ip.h> #include <net/if.h> #include <net/route.h> #include <arpa/inet.h> *************escaneo_puertos.c************** #include "analizador.h" #include <sys/systm.h> #include <stdio.h> #include <netinet/tcp.h> thank you for all _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.yupimsn.com/intl.asp. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F78S6oup2onvpLH0DuJ0000893b>