Changeset 39f7fec10a027d9f03e3c662a750b0c7432c6833
- Timestamp:
- 11/18/09 21:03:10
(3 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
| r25e8401 |
r39f7fec |
|
| 407 | 407 | AC_SUBST(EVENTER_OBJS) |
|---|
| 408 | 408 | |
|---|
| | 409 | AC_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 | ]) |
|---|
| | 417 | if test "x$ac_cv_have_posix_readdir_r" = "xyes" ; then |
|---|
| | 418 | AC_DEFINE(HAVE_POSIX_READDIR_R) |
|---|
| | 419 | have_posix_readdir_r=1 |
|---|
| | 420 | fi |
|---|
| | 421 | |
|---|
| 409 | 422 | AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [ |
|---|
| 410 | 423 | AC_TRY_COMPILE( |
|---|
| r3496ae7 |
r39f7fec |
|
| 71 | 71 | #undef HAVE_LIBKERN_OSATOMIC_H |
|---|
| 72 | 72 | #undef HAVE_NETINET_IN_SYSTM_H |
|---|
| | 73 | #undef HAVE_POSIX_READDIR_R |
|---|
| 73 | 74 | #undef HAVE_MYSQL_H |
|---|
| 74 | 75 | #undef HAVE_MYSQL_MYSQL_H |
|---|
| rae8bf79 |
r39f7fec |
|
| 133 | 133 | } |
|---|
| 134 | 134 | |
|---|
| 135 | | #if defined(__sun) && !defined(_POSIX_PTHREAD_SEMANTICS) |
|---|
| | 135 | #if defined(__sun) && !defined(HAVE_POSIX_READDIR_R) |
|---|
| 136 | 136 | #define portable_readdir_r(a,b,c) (((*c) = readdir_r(a,b)) != NULL) |
|---|
| 137 | 137 | #else |
|---|