Message ID | 20200907101805.58458-1-roger.pau@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | libgnttab/freebsd: add tools libs.h | expand |
On Mon, Sep 07, 2020 at 12:18:05PM +0200, Roger Pau Monne wrote: > 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é <roger.pau@citrix.com> Acked-by: Wei Liu <wl@xen.org> And applied.
diff --git a/tools/libs/gnttab/freebsd.c b/tools/libs/gnttab/freebsd.c index 0588501d0f..768af701c6 100644 --- a/tools/libs/gnttab/freebsd.c +++ b/tools/libs/gnttab/freebsd.c @@ -30,6 +30,8 @@ #include <xen/sys/gntdev.h> +#include <xen-tools/libs.h> + #include "private.h" #define PAGE_SHIFT 12
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é <roger.pau@citrix.com> --- tools/libs/gnttab/freebsd.c | 2 ++ 1 file changed, 2 insertions(+)