Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

<sys/socket.h> has no socklen_t

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> <sys/socket.h> has no socklen_t Page: [1]
Login
Message << Older Topic   Newer Topic >>
<sys/socket.h> has no socklen_t - Jan. 10, '06, 7:40:56 AM   
breiter

 

Posts: 338
Joined: Jun. 14, '04,
From: Washington, DC
Status: offline
I ran into a problem compiling code that expects <sys/socket.h> to make a socketlen_t type available.

In Interix, <sys/socket.h> does not typedef a socklen_t. Where the OpenGroup shows socklen_t being used as the type for msg_namelen in the msghder struct, Interix uses int. Is it safe to define a socklen_t type as int like this to make the port build?
#ifdef __INTERIX
typedef int socklen_t;
#endif

If so, perhaps it would be better to patch <sys/socket.h>?

< Message edited by breiter -- Jan. 10, '06, 7:42:01 AM >
Post #: 1
RE: <sys/socket.h> has no socklen_t - Jan. 10, '06, 12:59:55 PM   
Rodney

 

Posts: 3142
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
There's no problem adding this to your system.

BTW it's on my list to add it in the next phase of changes/updates I'm doing for MS.
So it'll be a while before anyone see it, but it is happening.

(in reply to breiter)
Post #: 2
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> <sys/socket.h> has no socklen_t Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.219