This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
sys/socket.h problem in Cygwin
- From: <Jack_Goral at NAI dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 14 Aug 2003 07:44:43 -0700
- Subject: sys/socket.h problem in Cygwin
sys/socket.h includes cygwin/socket.h, this includes asm/socket.h which includes cygwin/if.h.
This way "struct sockaddr_in" is not there because it is defined in cygwin/in.h not cygwin/if.h.
Because of that I must do:
#include <cygwin/in.h>
#include <sys/socket.h>
instead of only:
#include <sys/socket.h>
Is this a bug in Cygwin include headers for GCC 3.2 or I am doing something wrong?
Jack Goral
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/