This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] autotools: search.h


groleo@gmail.com writes:

> From: Adrian Marius Negreanu <adrian.m.negreanu@intel.com>

> +/* Define to 1 if you have the <search.h> header file. */
> +#undef HAVE_SEARCH_H
> [...]

Wow, none of that in bionic?

> @@ -661,6 +664,7 @@ int stp_main_loop(void)
>                if (verbose) { /* don't eliminate duplicates */
>                        eprintf("%.*s", (int) nb, recvbuf.payload.data);
>                        break;
> +#ifdef HAVE_SEARCH_H
>                } else { /* eliminate duplicates */
>                        static void *seen = 0;
>                        static unsigned seen_count = 0;
> @@ -706,6 +710,7 @@ int stp_main_loop(void)
>                        } else { /* old message */
>                                free (dupstr);
>                        }
> +#endif
>                } /* duplicate elimination */

It'd be a shame to lose WARNING: duplicate elimination altogether, but
I wouldn't be keen on reinventing the tfind/tsearch wheels either.


- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]