Ignore:
Timestamp:
11/10/2008 22:01:38 (4 years ago)
Author:
chris
Message:

Use getpeerucred() to identify connecting socket clients on Solaris,
and silence warnings that the peer cannot be identified on this
platform.

Remove another use of uname -o which doesn't work on Solaris.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/configure.ac

    r2339 r2348  
    183183AC_CHECK_DECLS([O_BINARY],,,) 
    184184 
     185# Solaris provides getpeerucred() instead of getpeereid() or SO_PEERCRED 
     186AC_CHECK_HEADERS([ucred.h]) 
     187AC_CHECK_FUNCS([getpeerucred]) 
     188 
    185189AC_CHECK_DECLS([optreset],,, [[#include <getopt.h>]]) 
    186190AC_CHECK_DECLS([dirfd],,, 
     
    312316client_parcel_dir=`perl infrastructure/parcelpath.pl backup-client $target_os` 
    313317 
    314 os_name=`uname -o` 
    315 if test "$os_name" = "Cygwin"; then 
     318if test "$build_os" = "cygwin"; then 
    316319        client_parcel_dir=`cygpath -wa $client_parcel_dir | sed -e 's|\\\|/|g'` 
    317         build_dir=`cygpath -wa $build_dir | sed -e 's|\\\|/|g'` 
     320        build_dir=`        cygpath -wa $build_dir        | sed -e 's|\\\|/|g'` 
    318321fi 
    319322 
Note: See TracChangeset for help on using the changeset viewer.