Hi daemons,
I'm trying to give a try to a fork of dwm.suckless port.
Checking more at the sources it's trying to get the parent process specifically for FreeBSD(source):
How can I solve this? or at least any help is welcome.
I'm trying to give a try to a fork of dwm.suckless port.
Bash:
dwm.c:2406:28: warning: implicit declaration of function
'kinfo_getproc' is invalid in C99
[-Wimplicit-function-declaration]
struct kinfo_proc *proc = kinfo_getproc(p);
^
dwm.c:2406:21: warning: incompatible integer to pointer
conversion initializing 'struct kinfo_proc *' with an
expression of type 'int' [-Wint-conversion]
struct kinfo_proc *proc = kinfo_getproc(p);
^ ~~~~~~~~~~~~~~~~
dwm.c:2410:10: error: incomplete definition of type
'struct kinfo_proc'
v = proc->ki_ppid;
~~~~^
dwm.c:2406:9: note: forward declaration of
'struct kinfo_proc'
struct kinfo_proc *proc = kinfo_getproc(p);
^
2 warnings and 1 error generated.
*** Error code 1
Checking more at the sources it's trying to get the parent process specifically for FreeBSD(source):
C:
#elif defined(__FreeBSD__)
struct kinfo_proc *proc = kinfo_getproc(p);
if (!proc)
return (pid_t)0;
v = proc->ki_ppid;
free(proc);
#endif
return (pid_t)v;
}
How can I solve this? or at least any help is welcome.