version 1.32.2.1, 2013/10/02 21:03:26 |
version 1.32.2.3, 2013/10/10 23:43:04 |
|
|
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
#if defined(__linux__) |
#if defined(__APPLE__) |
# include <endian.h> |
|
# include <db_185.h> |
|
#elif defined(__APPLE__) |
|
# include <libkern/OSByteOrder.h> |
# include <libkern/OSByteOrder.h> |
# include <db.h> |
#elif defined(__linux__) |
|
# include <endian.h> |
|
#elif defined(__sun) |
|
# include <sys/byteorder.h> |
#else |
#else |
# include <sys/endian.h> |
# include <sys/endian.h> |
|
#endif |
|
|
|
#if defined(__linux__) || defined(__sun) |
|
# include <db_185.h> |
|
#else |
# include <db.h> |
# include <db.h> |
#endif |
#endif |
|
|
Line 414 apropos_search(int pathsz, char **paths, const struct |
|
Line 419 apropos_search(int pathsz, char **paths, const struct |
|
{ |
{ |
struct rectree tree; |
struct rectree tree; |
struct mchars *mc; |
struct mchars *mc; |
int i, rc; |
int i; |
|
|
memset(&tree, 0, sizeof(struct rectree)); |
memset(&tree, 0, sizeof(struct rectree)); |
|
|
rc = 0; |
|
mc = mchars_alloc(); |
mc = mchars_alloc(); |
*sz = 0; |
*sz = 0; |
*resp = NULL; |
*resp = NULL; |