Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Mar 2020 17:37:24 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r528494 - head/devel/xeus-cling/files
Message-ID:  <202003151737.02FHbO7N086493@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Mar 15 17:37:24 2020
New Revision: 528494
URL: https://svnweb.freebsd.org/changeset/ports/528494

Log:
  devel/xeus-cling: Fix build by adding a patch adding include with sysctl parameters
  
  Reported by:	fallout

Added:
  head/devel/xeus-cling/files/patch-src_xpaths.cpp   (contents, props changed)

Added: head/devel/xeus-cling/files/patch-src_xpaths.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/xeus-cling/files/patch-src_xpaths.cpp	Sun Mar 15 17:37:24 2020	(r528494)
@@ -0,0 +1,22 @@
+--- src/xpaths.cpp.orig	2019-12-23 15:12:48 UTC
++++ src/xpaths.cpp
+@@ -24,6 +24,10 @@
+ #    undef NOMINMAX
+ #  endif
+ #endif
++#ifdef __FreeBSD__
++#  include <sys/types.h>
++#  include <sys/sysctl.h>
++#endif
+ #ifdef __APPLE__
+ #  include <cstdint>
+ #  include <mach-o/dyld.h>
+@@ -69,7 +73,7 @@ namespace xcpp
+         }
+ #elif defined (__FreeBSD__)
+         int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1};
+-        if (sysctl(mib, 4, buffer, sizeof(buffer), NULL, 0) != -1)
++        if (sysctl(mib, 4, nullptr, nullptr, buffer, sizeof(buffer)) != -1)
+         {
+             path = buffer;
+         }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003151737.02FHbO7N086493>