From: "plaisthos (Code Review)" Date: Wed, 8 May 2024 18:09:48 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <71594b6f52f7888e7e421e020cf43d8c714ea13b-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="9LqXtgK+UbE="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Support OpenBSD with cmake List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --9LqXtgK+UbE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/585?usp=3Demail to review the following change. Change subject: Support OpenBSD with cmake ...................................................................... Support OpenBSD with cmake Change-Id: I85d4d27333773e8df109e42b1fa56ccf57994e57 Signed-off-by: Arne Schwabe --- M CMakeLists.txt 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/585/1 diff --git a/CMakeLists.txt b/CMakeLists.txt index 3127611..f8b37a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,6 +136,8 @@ set(TARGET_FREEBSD YES) set(ENABLE_DCO YES) link_libraries(-lnv) +elseif (${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") + set(TARGET_OPENBSD YES) elseif (${CMAKE_SYSTEM_NAME} STREQUAL "SunOS") set(TARGET_SOLARIS YES) set(HAVE_SYS_SOCKIO_H 1) @@ -169,7 +171,7 @@ check_symbol_exists(setgid unistd.h HAVE_SETGID) check_symbol_exists(setuid unistd.h HAVE_SETUID) check_symbol_exists(setsid unistd.h HAVE_SETSID) -check_symbol_exists(getpeereid unistd.h HAVE_GETPEEREID) +check_symbol_exists(getpeereid "unistd.h;sys/socket.h" HAVE_GETPEEREID) check_symbol_exists(epoll_create sys/epoll.h HAVE_EPOLL_CREATE) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/585?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I85d4d27333773e8df109e42b1fa56ccf57994e57 Gerrit-Change-Number: 585 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --9LqXtgK+UbE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos would like flichtenheld to review this change.

Vi= ew Change

Support OpenBSD with cmake

Change-Id: I85d4d27333773e8= df109e42b1fa56ccf57994e57
Signed-off-by: Arne Schwabe <arne@...2477...= .>
---
M CMakeLists.txt
1 file changed, 3 insertions(+), 1 dele= tion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/chan=
ges/85/585/1
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 3127611..f8b37a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -136,6 +136,8 @@
set(TARGET_FREEBSD YES)
set(ENABLE_D= CO YES)
link_libraries(-lnv)
+elseif (${CMAKE_SYSTEM_NAME} STREQUAL "O= penBSD")
+ se= t(TARGET_OPENBSD YES)
elseif (${CMAKE_SYSTEM_NAME} STREQUA= L "SunOS")
set(TARGET_SOLARIS YES) set(HAVE_SYS_SOCKIO_H 1)
@@ -169,7 +171,7 @@
check_symbol_exists(setgid unistd.h HAVE_SETGID)
<= span> check_symbol_exists(setuid unistd.h HAVE_SETUID)

che= ck_symbol_exists(setsid unistd.h HAVE_SETSID)
-check_symbol_exists(getpeereid unistd.h HAVE_GETPEE= REID)
+check_symbol_e= xists(getpeereid "unistd.h;sys/socket.h" HAVE_GETPEEREID)<= br>
check_symbol_exists(epoll_create sys/epoll.h HA= VE_EPOLL_CREATE)


To v= iew, visit change 585. To unsubscribe, or for help writing mail filters, visit <= a href=3D"http://gerrit.openvpn.net/settings">settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I85d4d27333773e8df109e42b1fa= 56ccf57994e57
Gerrit-Change-Number: 585
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--9LqXtgK+UbE=--