diff mbox series

libgnttab/freebsd: add tools libs.h

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

Commit Message

Roger Pau Monne Sept. 7, 2020, 10:18 a.m. UTC
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(+)

Comments

Wei Liu Sept. 7, 2020, 2:12 p.m. UTC | #1
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 mbox series

Patch

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