Changeset 39f7fec10a027d9f03e3c662a750b0c7432c6833

Show
Ignore:
Timestamp:
11/18/09 21:03:10 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1258578190 +0000
git-parent:

[ae8bf798b9af68dc0cd9559a4e9c8076b47575f1]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1258578190 +0000
Message:

readdir_r (or rather Solaris) is the suck.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.in

    r25e8401 r39f7fec  
    407407AC_SUBST(EVENTER_OBJS) 
    408408 
     409AC_CACHE_CHECK([for posix_readdir_r], ac_cv_have_posix_readdir_r, [ 
     410        AC_TRY_COMPILE( 
     411                [ #include <dirent.h> ],  
     412                [ struct dirent *dep, de; readdir_r("/", &de, &dep); ],  
     413                [ ac_cv_have_posix_readdir_r="yes" ], 
     414                [ ac_cv_have_posix_readdir_r="no" ] 
     415        ) 
     416]) 
     417if test "x$ac_cv_have_posix_readdir_r" = "xyes" ; then 
     418        AC_DEFINE(HAVE_POSIX_READDIR_R) 
     419        have_posix_readdir_r=1 
     420fi 
     421 
    409422AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [ 
    410423        AC_TRY_COMPILE( 
  • src/noit_config.h.in

    r3496ae7 r39f7fec  
    7171#undef HAVE_LIBKERN_OSATOMIC_H 
    7272#undef HAVE_NETINET_IN_SYSTM_H 
     73#undef HAVE_POSIX_READDIR_R 
    7374#undef HAVE_MYSQL_H 
    7475#undef HAVE_MYSQL_MYSQL_H 
  • src/noit_defines.h

    rae8bf79 r39f7fec  
    133133} 
    134134 
    135 #if defined(__sun) && !defined(_POSIX_PTHREAD_SEMANTICS
     135#if defined(__sun) && !defined(HAVE_POSIX_READDIR_R
    136136#define portable_readdir_r(a,b,c) (((*c) = readdir_r(a,b)) != NULL) 
    137137#else