This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH] autotools: search.h
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: groleo at gmail dot com
- Cc: systemtap at sourceware dot org, Adrian Marius Negreanu <adrian dot m dot negreanu at intel dot com>
- Date: Wed, 27 Mar 2013 22:17:17 -0400
- Subject: Re: [PATCH] autotools: search.h
- References: <1364407084-22932-1-git-send-email-groleo at gmail dot com>
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