Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 11:10:54 -0300 (ART)
From:      Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
To:        Rohit Panda <prohit99@yahoo.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: problem in network programming using sockets
Message-ID:  <20020402105751.O95807-100000@cactus.fi.uba.ar>
In-Reply-To: <20020402121322.21012.qmail@web12806.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2 Apr 2002, Rohit Panda wrote:

>
> hi,
>
> i was trying to compile  a program (which is using sockets) which was
> running in linux.now i compiled the code but got some strange errors.
>
> eg. /usr/include/sys/socket.h syntax error before `gid_t`
>
>         "                                          `ushort_t`
>
>
> all the errors is from the socket.h file.
>
> iam using freebsd 4.4 version.
>
> where does the problemlie.

From socket(2):

SYNOPSIS
     #include <sys/types.h>
     #include <sys/socket.h>

     int
     socket(int domain, int type, int protocol);

You need to include  <sys/types.h> before <sys/socket.h>


			Fer


>
> thanks and regards
>
> rohit
>
>
>
>
>
>
>
>
>
>
> ftp> cd netscape6
> drwxr-xr-x 3 888 999 23 Mar 23 16:17 english
> drwxr-xr-x 3 888 999 23 Mar 23 16:18 japanese
> drwxr-xr-x 2 888 999 4096 Apr 5 03:55 marketing
> marketing is now apparently a language...
>  -- comment by chialea, found on slashdot
>
>
> ---------------------------------
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax



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?20020402105751.O95807-100000>