1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: libproc.h on macos only

This commit is contained in:
Alexander Medvednikov 2019-08-24 02:53:11 +03:00
parent 7fd9827318
commit 031e7fe113
3 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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]
) )