Changeset 46 for trunk/src/sh_socket.c


Ignore:
Timestamp:
Jun 9, 2006, 10:38:20 PM (18 years ago)
Author:
rainer
Message:

Fix x86_64 build failure with gcc 4.x (as well as some gcc 4.x warnings)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_socket.c

    r40 r46  
    522522#elif defined(SO_PEERCRED)
    523523  struct ucred cr;
    524   int          cl = sizeof(cr);
     524#ifdef HAVE_SOCKLEN_T
     525  socklen_t cl = sizeof(cr);
     526#else
     527  int       cl = sizeof(cr);
     528#endif
    525529
    526530#elif defined(HAVE_STRUCT_CMSGCRED) || defined(HAVE_STRUCT_FCRED) || (defined(HAVE_STRUCT_SOCKCRED) && defined(LOCAL_CREDS))
Note: See TracChangeset for help on using the changeset viewer.