[master] 2ad290f79 We don't need stdlib.h unless we compile the code

Poul-Henning Kamp phk at FreeBSD.org
Wed Aug 22 07:12:09 UTC 2018


commit 2ad290f79a41b9764e38ed5ed3f22239ce326018
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Aug 22 06:59:51 2018 +0000

    We don't need stdlib.h unless we compile the code

diff --git a/bin/varnishd/waiter/cache_waiter_epoll.c b/bin/varnishd/waiter/cache_waiter_epoll.c
index c48b72396..d0a4c690d 100644
--- a/bin/varnishd/waiter/cache_waiter_epoll.c
+++ b/bin/varnishd/waiter/cache_waiter_epoll.c
@@ -33,10 +33,10 @@
 //lint -e{766}
 #include "config.h"
 
-#include <stdlib.h>
-
 #if defined(HAVE_EPOLL_CTL)
 
+#include <stdlib.h>
+
 #include <sys/epoll.h>
 
 #include <errno.h>


More information about the varnish-commit mailing list