Skip to content

Commit

Permalink
update bundled libevent
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Apr 10, 2023
1 parent 0fdfeb7 commit 08dd88b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/libevent
Submodule libevent updated 104 files
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def run(self):
('sys/resource.h', False),
('sys/sysctl.h', False), # TODO !linux
('sys/timerfd.h', False),
('sys/signalfd.h', False),
('errno.h', False)]:
if probe.check_include(hfile):
DEFS['EVENT__HAVE_'+hfile.upper().replace('/','_').replace('.','_')] = '1'
Expand All @@ -235,6 +236,7 @@ def run(self):
'gettimeofday',
'kqueue',
'mmap',
'mmap64',
'pipe',
'pipe2',
'poll',
Expand All @@ -254,6 +256,7 @@ def run(self):
'arc4random_buf',
'arc4random_addrandom',
'epoll_create1',
'epoll_pwait2',
'getegid',
'geteuid',
'getifaddrs',
Expand Down Expand Up @@ -291,6 +294,7 @@ def run(self):
DEFS['EVENT__HAVE___func__'] = '1' if probe.check_symbol('__func__') else None

DEFS['EVENT__HAVE_EPOLL'] = DEFS['EVENT__HAVE_EPOLL_CREATE']
DEFS['EVENT__HAVE_SIGNALFD'] = DEFS['EVENT__HAVE_SYS_SIGNALFD_H']
DEFS['EVENT__HAVE_DEVPOLL'] = DEFS['EVENT__HAVE_SYS_DEVPOLL_H']

DEFS['EVENT__HAVE_TAILQFOREACH'] = '1' if probe.check_symbol('TAILQ_FOREACH', ['sys/queue.h']) else None
Expand Down Expand Up @@ -497,6 +501,9 @@ def define_DSOS(self):
if DEFS['EVENT__HAVE_EVENT_PORTS']=='1':
src_core += ['evport.c']

if DEFS['EVENT__HAVE_SIGNALFD']=='1':
src_core += ['signalfd.c']

if OS_CLASS=='WIN32':
src_core += [
'buffer_iocp.c',
Expand Down

0 comments on commit 08dd88b

Please sign in to comment.