aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorAlexey Elymanov <[email protected]>2018-02-18 20:55:31 +0300
committerGitHub <[email protected]>2018-02-18 20:55:31 +0300
commit063ad490a24dfc28ad6ffe4b3b4c52273d596c8d (patch)
treeedac50bd71ab555b027c990540faf2f3a35a3064 /Alc
parent59768674f1764706a2e59c4c314f80eca3b5de9d (diff)
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
Diffstat (limited to 'Alc')
-rw-r--r--Alc/helpers.c2
1 files changed, 1 insertions, 1 deletions
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