Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating editors/neovim to match 2024Q3 in FreeBSD ports #1481

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions ports/editors/neovim/dragonfly/patch-src_nvim_os_process.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
--- src/nvim/os/process.c.orig 2018-06-10 22:46:49 UTC
+++ src/nvim/os/process.c
@@ -12,13 +12,13 @@
# include <tlhelp32.h> // for CreateToolhelp32Snapshot
--- src/nvim/os/process.c.orig Thu May 16 12:34:32 2024
+++ src/nvim/os/process.c Mon Sep
@@ -15,13 +15,13 @@
# include <tlhelp32.h>
#endif

-#if defined(__FreeBSD__) // XXX: OpenBSD ?
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
# include <string.h>
# include <sys/types.h>
Expand All @@ -16,12 +16,12 @@
# include <sys/param.h>
#endif

@@ -155,6 +155,9 @@ int os_proc_children(int ppid, int **pro
@@ -156,6 +156,9 @@ int os_proc_children(int ppid, int **proc_list, size_t
# elif defined(__FreeBSD__)
# define KP_PID(o) o.ki_pid
# define KP_PPID(o) o.ki_ppid
+# elif defined(__DragonFly__)
+# define KP_PID(o) o.kp_pid
+# define KP_PID(o) o.kp_pid
+# define KP_PPID(o) o.kp_ppid
# else
# define KP_PID(o) o.p_pid
Expand Down
Loading