]> granicus.if.org Git - libevent/commit
When including an -internal.h header outside the main tree, do so early
authorNick Mathewson <nickm@torproject.org>
Tue, 24 Jan 2012 21:08:00 +0000 (16:08 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 24 Jan 2012 21:08:00 +0000 (16:08 -0500)
commit95e2455cdbf840bdcf913f4ef59d0109babd3d6a
treeb216749e182c48cfd923ef28f24ff521891a2517
parentb9f7e5fd19968f20fedac2795e932593b41fe04e
When including an -internal.h header outside the main tree, do so early

Some of our unit tests and sample code need functions and structures
defined in an -internal.h header.  But that can freak out OpenSolaris,
where stdio.h wants to define _FILE_OFFSET_BITS unless it's already
defined, and then evconfig-internal.h defines it.  Regular users
should never ever use our -internal.h headers, so the solution is
to make sure that if we're going to use them ourselves, we do so
before system headers.
16 files changed:
sample/http-server.c
test/bench_httpclient.c
test/regress.c
test/regress_buffer.c
test/regress_bufferevent.c
test/regress_dns.c
test/regress_http.c
test/regress_listener.c
test/regress_main.c
test/regress_minheap.c
test/regress_testutils.c
test/regress_thread.c
test/regress_util.c
test/test-ratelim.c
test/tinytest.c
test/tinytest_local.h