Commit 09f3be72 authored by Andreas Schneider's avatar Andreas Schneider

swrap: Add support for running on OpenBSD

Signed-off-by: default avatarAndreas Schneider <asn@samba.org>
Reviewed-by: default avatarRalph Böhme <slow@samba.org>
parent feb9ee05
......@@ -63,6 +63,8 @@ check_function_exists(eventfd HAVE_EVENTFD)
check_function_exists(timerfd_create HAVE_TIMERFD_CREATE)
check_function_exists(bindresvport HAVE_BINDRESVPORT)
check_function_exists(pledge HAVE_PLEDGE)
if (UNIX)
if (NOT LINUX)
......
......@@ -39,6 +39,7 @@
#cmakedefine HAVE_EVENTFD 1
#cmakedefine HAVE_TIMERFD_CREATE 1
#cmakedefine HAVE_BINDRESVPORT 1
#cmakedefine HAVE_PLEDGE 1
#cmakedefine HAVE_ACCEPT_PSOCKLEN_T 1
#cmakedefine HAVE_IOCTL_INT 1
......
......@@ -5248,6 +5248,16 @@ int eventfd(int count, int flags)
}
#endif
#ifdef HAVE_PLEDGE
int pledge(const char *promises, const char *paths[])
{
(void)promises; /* unused */
(void)paths; /* unused */
return 0;
}
#endif /* HAVE_PLEDGE */
/****************************
* DESTRUCTOR
***************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment