=================================================================== RCS file: /cvs/mandoc/Attic/apropos_db.c,v retrieving revision 1.32.2.1 retrieving revision 1.32.2.3 diff -u -p -r1.32.2.1 -r1.32.2.3 --- mandoc/Attic/apropos_db.c 2013/10/02 21:03:26 1.32.2.1 +++ 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.2.1 2013/10/02 21:03:26 schwarze 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,14 +30,19 @@ #include #include -#if defined(__linux__) -# include -# include -#elif defined(__APPLE__) +#if defined(__APPLE__) # include -# include +#elif defined(__linux__) +# include +#elif defined(__sun) +# include #else # include +#endif + +#if defined(__linux__) || defined(__sun) +# include +#else # include #endif @@ -414,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;