Changeset 5804:8321b4018c95 in roaraudio


Ignore:
Timestamp:
12/11/12 12:52:20 (7 years ago)
Author:
phi
Branch:
default
Message:

honor ROAR_BROKEN_PEERCRED

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r5740 r5804  
    392392int clients_set_fh    (int id, int    fh) { 
    393393 struct roar_client * c; 
    394 #ifdef SO_PEERCRED 
     394#if defined(SO_PEERCRED) && !defined(ROAR_BROKEN_PEERCRED) 
    395395 struct ucred cred; 
    396396 socklen_t cred_len = sizeof(cred); 
     
    407407  return 0; 
    408408 
    409 #ifdef SO_PEERCRED 
     409#if defined(SO_PEERCRED) && !defined(ROAR_BROKEN_PEERCRED) 
    410410 if (getsockopt(fh, SOL_SOCKET, SO_PEERCRED, &cred, &cred_len) != -1) { 
    411411  if ( cred.pid != 0 ) { 
Note: See TracChangeset for help on using the changeset viewer.