[Bro] Bro 1.2.1 vs OpenBSD 4.0 (phase 2)
christian at whoop.org
Wed Dec 20 03:29:42 PST 2006
On Tue, 2006-12-19 at 20:48 -0500, Jean-Philippe Luiggi wrote:
> I don't see (yet) how using just a "#typedef" will solve the problem.
> I may be wrong but i can't use a "typedef struct bpf_timeval timeval;"
> "struct timeval" exists and is used elsewhere.
I see your point. I still don't think there's a need to #ifdef different
functions though -- if we use struct timeval consistently throughout the
code (as we are), then you'll probably only need to add assignment
operators for the two different types (that'd fix the compiler error
you're pointing out) and maybe casts to struct timeval* in other places.
Let me know if there are other problems I'm missing.
More information about the Bro