[master] d320b77 Include <sys/stat.h> to define mode_t in vpf.h
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue May 2 10:20:06 CEST 2017
commit d320b774e71875818504658e629a6b18c44d51cc
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue May 2 10:16:03 2017 +0200
Include <sys/stat.h> to define mode_t in vpf.h
Inspired by:
https://git.alpinelinux.org/cgit/aports/plain/main/varnish/musl-mode_t.patch?h=3.5-stable
diff --git a/bin/varnishlog/varnishlog.c b/bin/varnishlog/varnishlog.c
index 6f8fdb6..b4739e5 100644
--- a/bin/varnishlog/varnishlog.c
+++ b/bin/varnishlog/varnishlog.c
@@ -39,6 +39,7 @@
#include <errno.h>
#include <stdarg.h>
#include <stdint.h>
+#include <sys/stat.h>
#include "vapi/vsm.h"
#include "vapi/vsl.h"
diff --git a/lib/libvarnishapi/vut.c b/lib/libvarnishapi/vut.c
index 5c5b90e..e3bc741 100644
--- a/lib/libvarnishapi/vut.c
+++ b/lib/libvarnishapi/vut.c
@@ -41,6 +41,7 @@
#include <string.h>
#include <signal.h>
#include <math.h>
+#include <sys/stat.h>
#include "compat/daemon.h"
#include "vdef.h"
More information about the varnish-commit
mailing list