os: libproc.h on macos only
parent
7fd9827318
commit
031e7fe113
|
@ -17,7 +17,8 @@ CommonCHeaders = '
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <execinfo.h> // for backtrace and backtrace_symbols_fd
|
#include <libproc.h> // proc_pidpath
|
||||||
|
#include <execinfo.h> // backtrace and backtrace_symbols_fd
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,6 @@ module os
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
$if mac {
|
|
||||||
#include <libproc.h> // proc_pidpath
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
struct dirent {
|
struct dirent {
|
||||||
d_ino int
|
d_ino int
|
||||||
|
|
|
@ -6,7 +6,6 @@ module time
|
||||||
|
|
||||||
import rand
|
import rand
|
||||||
|
|
||||||
// https://en.wikipedia.org/wiki/Month#Julian_and_Gregorian_calendars
|
|
||||||
const (
|
const (
|
||||||
MonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
|
MonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue