91b423b Use struct sockpeercred when available

2 files Authored by Jasper Lievisse Adriaanse 8 years ago, Committed by Roman Bogorodskiy 8 years ago,
    Use struct sockpeercred when available
    
    OpenBSD uses 'struct sockpeercred' instead of 'struct ucred'. Add a
    configure check that detects its presence and use if in the code that
    could be compiled on OpenBSD.
    
    Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
    
        
file modified
+6 -0
file modified
+4 -0