=================================================================== RCS file: /cvs/mandoc/Attic/apropos_db.c,v retrieving revision 1.32 retrieving revision 1.32.2.3 diff -u -p -r1.32 -r1.32.2.3 --- mandoc/Attic/apropos_db.c 2012/03/25 00:48:47 1.32 +++ mandoc/Attic/apropos_db.c 2013/10/10 23:43:04 1.32.2.3 @@ -1,4 +1,4 @@ -/* $Id: apropos_db.c,v 1.32 2012/03/25 00:48:47 kristaps Exp $ */ +/* $Id: apropos_db.c,v 1.32.2.3 2013/10/10 23:43:04 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -30,12 +30,18 @@ #include #include -#if defined(__linux__) +#if defined(__APPLE__) +# include +#elif defined(__linux__) # include +#elif defined(__sun) +# include +#else +# include +#endif + +#if defined(__linux__) || defined(__sun) # include -#elif defined(__APPLE__) -# include -# include #else # include #endif @@ -413,11 +419,10 @@ apropos_search(int pathsz, char **paths, const struct { struct rectree tree; struct mchars *mc; - int i, rc; + int i; memset(&tree, 0, sizeof(struct rectree)); - rc = 0; mc = mchars_alloc(); *sz = 0; *resp = NULL;