1
1

Fix libevent so it can compile in the few cases where sys/queue.h does not exist.

1. Remove it from libevent207.h because it is not needed.
2. Add compat to the include list so it can use queue.h when needed.

This commit was SVN r24144.
Этот коммит содержится в:
Rolf vandeVaart 2010-12-02 23:05:02 +00:00
родитель effc240dbf
Коммит 3f7dd84278
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -1,5 +1,6 @@
# #
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. # Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
# $COPYRIGHT$ # $COPYRIGHT$
# #
# Additional copyrights may follow # Additional copyrights may follow
@ -9,7 +10,7 @@
EXTRA_DIST = .windows EXTRA_DIST = .windows
AM_CPPFLAGS = -I$(srcdir)/libevent -I$(srcdir)/libevent/include -I$(builddir)/libevent/include AM_CPPFLAGS = -I$(srcdir)/libevent -I$(srcdir)/libevent/include -I$(builddir)/libevent/include -I$(srcdir)/libevent/compat
SUBDIRS = libevent SUBDIRS = libevent

Просмотреть файл

@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
* *
* $COPYRIGHT$ * $COPYRIGHT$
* *
@ -29,7 +30,6 @@
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#include <sys/queue.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#ifndef WIN32 #ifndef WIN32