|
|
@ -13,7 +13,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#if defined (__APPLE__)
|
|
|
|
#if defined (__APPLE__)
|
|
|
|
#include "event.h"
|
|
|
|
#include "event.h"
|
|
|
|
#elif defined (__FreeBSD__) || defined (__NetBSD__)
|
|
|
|
#elif defined (__DragonFly__) || (__FreeBSD__) || defined (__NetBSD__)
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/sysctl.h>
|
|
|
|
#include <sys/sysctl.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -46,7 +46,7 @@ static int get_exec_path (char *exec_path, const size_t exec_path_sz)
|
|
|
|
|
|
|
|
|
|
|
|
const size_t len = strlen (exec_path);
|
|
|
|
const size_t len = strlen (exec_path);
|
|
|
|
|
|
|
|
|
|
|
|
#elif defined (__FreeBSD__)
|
|
|
|
#elif defined (__DragonFly__) || (__FreeBSD__)
|
|
|
|
|
|
|
|
|
|
|
|
int mib[4];
|
|
|
|
int mib[4];
|
|
|
|
|
|
|
|
|
|
|
|