• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CW: undefined identifier 'socklen_t' ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CW: undefined identifier 'socklen_t' ?


  • Subject: CW: undefined identifier 'socklen_t' ?
  • From: Stephane Pinel <email@hidden>
  • Date: Sat, 17 Jan 2004 11:25:54 +0100

I'm trying to compile (using CW) a project that links socket.h but this one returns the same
single error at compile time :

"
Error : undefined identifier 'socklen_t'
socket.h line 374 socklen_t msg_namelen; /* size of address */
"

Here is the piece of code in socket.h that is pointed by the error :

----------
struct msghdr {
caddr_t msg_name; /* optional address */
socklen_t msg_namelen; /* size of address */
struct iovec *msg_iov; /* scatter/gather array */
u_int msg_iovlen; /* # elements in msg_iov */
caddr_t msg_control; /* ancillary data, see below */
socklen_t msg_controllen; /* ancillary data buffer len */
int msg_flags; /* flags on received message */
};
----------

Here is the place (in the same file) where it is supposed to be defined :

----------
/*
* Data types.
*/
typedef u_char sa_family_t;
#ifdef _BSD_SOCKLEN_T_
typedef _BSD_SOCKLEN_T_ socklen_t;
#undef _BSD_SOCKLEN_T_
#endif
----------


...this code compiles OK with gcc...Is there something special to configure in order to
use socket.h from CW ?

Thanks in advance.

Stiphane
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Sending a Quicktime movie?
  • Next by Date: FSMountServerVolumeSync problems
  • Previous by thread: Re: Sending a Quicktime movie?
  • Next by thread: FSMountServerVolumeSync problems
  • Index(es):
    • Date
    • Thread