Skip to content

Commit

Permalink
Merge pull request #156 from devnexen/dflybsd_build_fix
Browse files Browse the repository at this point in the history
config binary path: dragonflybsd build little update
  • Loading branch information
9EOR9 committed Jan 23, 2022
2 parents 721a41d + 58d33ed commit 493dce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mariadb_config/mariadb_config.c.in
Expand Up @@ -6,7 +6,7 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#if defined(__FreeBSD__)
#if defined(__FreeBSD__) || defined(__DragonFly__)
#include <sys/sysctl.h>
#endif
#ifdef HAVE_SYS_TYPES_H
Expand Down Expand Up @@ -190,7 +190,7 @@ static void mariadb_get_install_location()
*p= 0;
else
p[len]= 0;
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__) || defined(__DragonFly__)
int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1};
size_t cb = PATH_MAX;
if (sysctl(mib, 4, p, &cb, NULL, 0) == -1)
Expand Down

0 comments on commit 493dce6

Please sign in to comment.