[PATCH] autotools: search.h
Frank Ch. Eigler
fche@redhat.com
Thu Mar 28 02:17:00 GMT 2013
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
More information about the Systemtap
mailing list