Commit 1319cbfa authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Always include <sys/param.h> on FreeBSD so we are sure we have a

definition for __FreeBSD_version.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5178 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1c8c68f4
......@@ -38,7 +38,9 @@
#ifndef VMB_H_INCLUDED
#define VMB_H_INCLUDED
void vmb_pthread(void);
#if defined(__FreeBSD__)
#include <sys/param.h>
#endif
#if defined(__FreeBSD__) && __FreeBSD_version >= 800058
......@@ -76,6 +78,8 @@ void vmb_pthread(void);
#define VMB_NEEDS_PTHREAD_WORKAROUND_THIS_IS_BAD_FOR_PERFORMANCE 1
void vmb_pthread(void);
#define VMB() vmb_pthread()
#define VWMB() vmb_pthread()
#define VRMB() vmb_pthread()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment