svn commit: r528494 - head/devel/xeus-cling/files
Yuri Victorovich
yuri at FreeBSD.org
Sun Mar 15 17:37:26 UTC 2020
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;
+ }
More information about the svn-ports-all
mailing list