include <time.h>,在开始时发生错误

时间:2016-01-27 10:08:58

标签: c varnish-vcl

我在default.vcl

中使用以下代码
C{#include <time.h>}C  

开始时发生错误。

Message from C-compiler:  
./vcl.TfBe17Rg.c:429:21: time.h: No such file or directory  
./vcl.TfBe17Rg.c:430:23: string.h: No such file or directory  
Running C-compiler failed, exit 1

1 个答案:

答案 0 :(得分:0)

C{
#include <sys/time.h>
#include <stdio.h>
}C

尝试sys/time.h,它应该有效。