Skip to content

Commit

Permalink
We do not work any more without an event-config.h; stop pretending th…
Browse files Browse the repository at this point in the history
…at it is meaningful to check for HAVE_CONFIG_H

svn:r1516
  • Loading branch information
nmathewson committed Nov 6, 2009
1 parent 4d48cf6 commit 784b877
Show file tree
Hide file tree
Showing 46 changed files with 6 additions and 99 deletions.
2 changes: 0 additions & 2 deletions buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef WIN32
#include <winsock2.h>
Expand Down
2 changes: 0 additions & 2 deletions bufferevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@

#include <sys/types.h>

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
Expand Down
2 changes: 0 additions & 2 deletions bufferevent_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@

#include <sys/types.h>

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
Expand Down
2 changes: 0 additions & 2 deletions bufferevent_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@

#include <sys/types.h>

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
Expand Down
2 changes: 0 additions & 2 deletions bufferevent_pair.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#include <winsock2.h>
#endif

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include "event2/util.h"
#include "event2/buffer.h"
Expand Down
2 changes: 0 additions & 2 deletions bufferevent_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@

#include <sys/types.h>

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
Expand Down
2 changes: 0 additions & 2 deletions devpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#include <sys/resource.h>
Expand Down
2 changes: 0 additions & 2 deletions epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <stdint.h>
#include <sys/types.h>
Expand Down
2 changes: 0 additions & 2 deletions evdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
*/

#include <sys/types.h>
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef _EVENT_DNS_USE_FTIME_FOR_ID
#include <sys/timeb.h>
Expand Down
2 changes: 0 additions & 2 deletions event.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef WIN32
#include <winsock2.h>
Expand Down
2 changes: 0 additions & 2 deletions event_tagging.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef _EVENT_HAVE_SYS_TYPES_H
#include <sys/types.h>
Expand Down
2 changes: 0 additions & 2 deletions evmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef WIN32
#include <winsock2.h>
Expand Down
2 changes: 0 additions & 2 deletions evport.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@
* As in the select(2) implementation, signals are handled by evsignal.
*/

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/time.h>
#include <sys/queue.h>
Expand Down
2 changes: 0 additions & 2 deletions evrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
Expand Down
2 changes: 0 additions & 2 deletions evthread_pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

/* With glibc we need to define this to get PTHREAD_MUTEX_RECURSIVE. */
#define _GNU_SOURCE
Expand Down
2 changes: 0 additions & 2 deletions evthread_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef WIN32
#include <winsock2.h>
Expand Down
3 changes: 1 addition & 2 deletions evutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H

#include "event-config.h"
#endif

#ifdef WIN32
#include <winsock2.h>
Expand Down
3 changes: 1 addition & 2 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#define _REENTRANT

#ifdef _EVENT_HAVE_SYS_PARAM_H
Expand Down
2 changes: 0 additions & 2 deletions kqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#define _GNU_SOURCE

Expand Down
2 changes: 0 additions & 2 deletions listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@

#include <sys/types.h>

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef WIN32
#include <winsock2.h>
Expand Down
2 changes: 0 additions & 2 deletions log.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@
* SUCH DAMAGE.
*/

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef WIN32
#include <winsock2.h>
Expand Down
2 changes: 0 additions & 2 deletions poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#ifdef _EVENT_HAVE_SYS_TIME_H
Expand Down
4 changes: 1 addition & 3 deletions sample/event-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
* cc -I/usr/local/include -o event-test event-test.c -L/usr/local/lib -levent
*/

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif
#include <event-config.h>

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
4 changes: 1 addition & 3 deletions sample/signal-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

#include <sys/types.h>

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif
#include <event-config.h>

#include <sys/stat.h>
#ifndef WIN32
Expand Down
4 changes: 1 addition & 3 deletions sample/time-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@

#include <sys/types.h>

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif
#include <event-config.h>

#include <sys/stat.h>
#ifndef WIN32
Expand Down
2 changes: 0 additions & 2 deletions select.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#ifdef _EVENT_HAVE_SYS_TIME_H
Expand Down
2 changes: 0 additions & 2 deletions signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
Expand Down
2 changes: 0 additions & 2 deletions strlcpy-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
extern "C" {
#endif

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif /* HAVE_CONFIG_H */

#ifndef _EVENT_HAVE_STRLCPY
#include <string.h>
Expand Down
2 changes: 0 additions & 2 deletions strlcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp

#include <sys/types.h>

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif /* HAVE_CONFIG_H */

#ifndef _EVENT_HAVE_STRLCPY
#include "strlcpy-internal.h"
Expand Down
2 changes: 0 additions & 2 deletions test/bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
*
*/

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
2 changes: 0 additions & 2 deletions test/bench_cascade.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
*
*/

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
2 changes: 0 additions & 2 deletions test/bench_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
*
*/

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
2 changes: 0 additions & 2 deletions test/regress.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#include <windows.h>
#endif

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
2 changes: 0 additions & 2 deletions test/regress_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#include <windows.h>
#endif

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
2 changes: 0 additions & 2 deletions test/regress_bufferevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#include <windows.h>
#endif

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
2 changes: 0 additions & 2 deletions test/regress_dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
#include <ws2tcpip.h>
#endif

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
2 changes: 0 additions & 2 deletions test/regress_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#include <windows.h>
#endif

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#include <sys/stat.h>
Expand Down
2 changes: 0 additions & 2 deletions test/regress_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#include <windows.h>
#endif

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#ifdef _EVENT___func__
#define __func__ _EVENT___func__
Expand Down
2 changes: 0 additions & 2 deletions test/regress_pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifdef HAVE_CONFIG_H
#include "event-config.h"
#endif

#include <sys/types.h>
#include <stdio.h>
Expand Down
Loading

0 comments on commit 784b877

Please sign in to comment.