From 063ad490a24dfc28ad6ffe4b3b4c52273d596c8d Mon Sep 17 00:00:00 2001 From: Alexey Elymanov Date: Sun, 18 Feb 2018 20:55:31 +0300 Subject: freebsd fix: typo Alc/helpers.c:738:30: error: use of undeclared identifier 'KERN_PROCARGS' int mib[4] = { CTL_KERN, KERN_PROCARGS, getpid() }; /usr/include/sys/sysctl.h: `#define KERN_PROC_ARGS 7 /* get/set arguments/proctitle */` there's no KERN_PROCARGS --- Alc/helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/helpers.c b/Alc/helpers.c index 96f9b681..45e137fd 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -735,7 +735,7 @@ void GetProcBinary(al_string *path, al_string *fname) size_t pathlen; #ifdef __FreeBSD__ - int mib[4] = { CTL_KERN, KERN_PROCARGS, getpid() }; + int mib[4] = { CTL_KERN, KERN_PROC_ARGS, getpid() }; if(sysctl(mib, 3, NULL, &pathlen, NULL, 0) == -1) WARN("Failed to sysctl kern.procargs.%d: %s\n", mib[2], strerror(errno)); else -- cgit v1.2.3