libgnttab/freebsd: add tools libs.h
PATCH 1/1 libgnttab/freebsd: add tools libs.h
In order to get the ROUNDUP macro, or else the build fails. I assume ROUNDUP would previously get included from a different header.
Seeing as Linux does explicitly include libs.h do the same for FreeBSD.
Signed-off-by Roger Pau Monné <[email protected]>
--- tools/libs/gnttab/freebsd.c | 2 ++ 1 file changed, 2 insertions(+)
tools/libs/gnttab/freebsd.c +2 -0
@@ -30,6 +30,8 @@#include <xen/sys/gntdev.h> +#include <xen-tools/libs.h> +#include "private.h" #define PAGE_SHIFT 12
Signature · 1 line
2.28.0
Quoted 7 lines · Roger Pau Monne
In order to get the ROUNDUP macro, or else the build fails. I assume ROUNDUP would previously get included from a different header.
Seeing as Linux does explicitly include
libs.hdo the same for FreeBSD.Signed-off-by Roger Pau Monné <[email protected]>
Acked-by Wei Liu <[email protected]>
And applied.