summaryrefslogtreecommitdiff
path: root/source4/lib/events/events_epoll.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-04-24 17:28:30 -0400
committerSimo Sorce <idra@samba.org>2008-05-14 00:03:01 -0400
commit136f369b23946698c9fcfd217444ddc0614cde85 (patch)
treece83f0dc2e5ad12d0433cae6b8482be67921b7ce /source4/lib/events/events_epoll.c
parent0e4ae88d3856869a5bb327ed26e155f22bdffc09 (diff)
downloadsamba-136f369b23946698c9fcfd217444ddc0614cde85.tar.gz
samba-136f369b23946698c9fcfd217444ddc0614cde85.tar.bz2
samba-136f369b23946698c9fcfd217444ddc0614cde85.zip
Make it possible to build libevents standalone.
(This used to be commit 10415bb738d51afdebbfeae976923e086805ae84)
Diffstat (limited to 'source4/lib/events/events_epoll.c')
-rw-r--r--source4/lib/events/events_epoll.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/source4/lib/events/events_epoll.c b/source4/lib/events/events_epoll.c
index 109027eb1a..07e66154fc 100644
--- a/source4/lib/events/events_epoll.c
+++ b/source4/lib/events/events_epoll.c
@@ -20,12 +20,17 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#if _SAMBA_BUILD_
#include "includes.h"
+#include "lib/util/dlinklist.h"
+#else
+#include "replace.h"
+#include "events_util.h"
+#endif
#include "system/filesys.h"
#include "system/network.h"
-#include "lib/util/dlinklist.h"
-#include "lib/events/events.h"
-#include "lib/events/events_internal.h"
+#include "events.h"
+#include "events_internal.h"
#include <sys/epoll.h>
struct epoll_event_context {
@@ -56,9 +61,11 @@ struct epoll_event_context {
called when a epoll call fails, and we should fallback
to using select
*/
-_NORETURN_ static void epoll_panic(struct epoll_event_context *epoll_ev, const char *reason)
+static void epoll_panic(struct epoll_event_context *epoll_ev, const char *reason)
{
+#if _SAMBA_BUILD_
DEBUG(0,("%s (%s) - calling abort()\n", reason, strerror(errno)));
+#endif
abort();
}