SCIENTIFIC-LINUX-USERS Archives

January 2016

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Antonio Querubin <[log in to unmask]>
Reply To:
Antonio Querubin <[log in to unmask]>
Date:
Thu, 14 Jan 2016 12:43:25 -1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
On Thu, 14 Jan 2016, Mark Stodola wrote:

> It looks like sa_family_t has been morphing over time.  In SL5, it is indeed 
> defined in linux/socket.h.  In SL6 I find it defined in bits/sockaddr.h.  In 
> SL7 it continues to be in bits/sockaddr.h, but there is also 
> __kernel_sa_family_t defined in linux/socket.h.
>
> Try adding bits/sockaddr.h to your includes.

That probably should be <sys/socket.h>.  From the sockaddr.h:

  * Never include this file directly; use <sys/socket.h> instead.


Antonio Querubin
e-mail:  [log in to unmask]
xmpp:  [log in to unmask]

ATOM RSS1 RSS2