From 031e7fe1136835a1b4a79ead9908057dc20b95a4 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 24 Aug 2019 02:53:11 +0300 Subject: [PATCH] os: libproc.h on macos only --- compiler/cheaders.v | 3 ++- vlib/os/os.v | 4 ---- vlib/time/time.v | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/compiler/cheaders.v b/compiler/cheaders.v index cf2b30fba8..e2d3c873f1 100644 --- a/compiler/cheaders.v +++ b/compiler/cheaders.v @@ -17,7 +17,8 @@ CommonCHeaders = ' #endif #ifdef __APPLE__ -#include // for backtrace and backtrace_symbols_fd +#include // proc_pidpath +#include // backtrace and backtrace_symbols_fd #endif diff --git a/vlib/os/os.v b/vlib/os/os.v index 3b65470c7a..6d0dbd76e6 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -8,10 +8,6 @@ module os #include #include -$if mac { - #include // proc_pidpath -} - /* struct dirent { d_ino int diff --git a/vlib/time/time.v b/vlib/time/time.v index fa2c5732f2..30b56dcdde 100644 --- a/vlib/time/time.v +++ b/vlib/time/time.v @@ -6,7 +6,6 @@ module time import rand -// https://en.wikipedia.org/wiki/Month#Julian_and_Gregorian_calendars const ( MonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] )