socket.h / in.h

Alexey V. Neyman alex.neyman@auriga.ru
Wed Feb 5 07:17:00 GMT 2003


Hello,

On 5 February 2003 05:46, dark rotter wrote:
> well.. i'm trying create a socket, but when i include
> some lib's like:
> #include <sys/socket.h>
> #include <netinet/in.h>

On FreeBSD, you need to include <sys/types.h> prior to all networking 
headers. It is well-described in its man pages, e.g. socket(2).

Regards,
Alexey.

-- 
,----------------------------------------,
| A quoi ca sert d'etre sur la terre     | Alexey V. Neyman
| Si c'est pour faire nos vies a genoux! | mailto:alex.neyman@auriga.ru
`------------------( Les Rois du Monde )-'



More information about the Gcc-help mailing list