From: "cron2 (Code Review)" Date: Thu, 9 May 2024 10:12:52 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <459e40d1b0a05a8bc473729bb65ba6561a306152-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="PjQ1jGBQmyY="; 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: plaisthos , flichtenheld Cc: openvpn-devel --PjQ1jGBQmyY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/585?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by flichtenheld Change subject: Support OpenBSD with cmake ...................................................................... Support OpenBSD with cmake Change-Id: I85d4d27333773e8df109e42b1fa56ccf57994e57 Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Message-Id: <20240508220512.12362-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28= 648.html Signed-off-by: Gert Doering --- M CMakeLists.txt 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/585/2 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: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --PjQ1jGBQmyY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #2 to the change originally cr= eated by plaisthos.

View Change

The following approvals got outdated= and were removed: Code-Review+2 by flichtenheld

Support OpenBSD with cmake

Change-Id: = I85d4d27333773e8df109e42b1fa56ccf57994e57
Signed-off-by: Arne Schwabe &l= t;arne@...1227...>
Acked-by: Frank Lichtenheld <frank@...2641...&g= t;
Message-Id: <20240508220512.12362-1-gert@...1296...>
URL: ht= tps://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28648.htm= l
Signed-off-by: Gert Doering <gert@...1296...>
---
M CMakeL= ists.txt
1 file changed, 3 insertions(+), 1 deletion(-)

git pu= ll ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/585/2
dif=
f --git a/CMakeLists.txt b/CMakeLists.txt
index 3127611..f8= b37a9 100644
--- a/CMakeLists.txt
+++ b/CMa= keLists.txt
@@ -136,6 +136,8 @@
set(TA= RGET_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_sym= bol_exists(setgid unistd.h HAVE_SETGID)
check_symbol_exist= s(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 "u= nistd.h;sys/socket.h" HAVE_GETPEEREID)

check_symbol_exists(epoll_create sys/epoll.h HAVE_EPOLL_CREATE)
<= br>

To view, visit change 585. To uns= ubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I85d4d27333773e8df109e42b1fa= 56ccf57994e57
Gerrit-Change-Number: 585
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--PjQ1jGBQmyY=--