diff mbox

xl: fix compilation of xl_migrate.c

Message ID 20170228173104.69282-1-roger.pau@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Roger Pau Monne Feb. 28, 2017, 5:31 p.m. UTC
The usage of signal(3) requires the inclusion of the signal.h header:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/signal.html

This fixes the build on FreeBSD.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
---
 tools/xl/xl_migrate.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Wei Liu Feb. 28, 2017, 5:39 p.m. UTC | #1
On Tue, Feb 28, 2017 at 05:31:04PM +0000, Roger Pau Monne wrote:
> The usage of signal(3) requires the inclusion of the signal.h header:
> 
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/signal.html
> 
> This fixes the build on FreeBSD.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>

Acked + applied.
Ian Jackson Feb. 28, 2017, 5:40 p.m. UTC | #2
Roger Pau Monne writes ("[PATCH] xl: fix compilation of xl_migrate.c"):
> The usage of signal(3) requires the inclusion of the signal.h header:
> 
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/signal.html
> 
> This fixes the build on FreeBSD.

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
diff mbox

Patch

diff --git a/tools/xl/xl_migrate.c b/tools/xl/xl_migrate.c
index 50145ab..28fb823 100644
--- a/tools/xl/xl_migrate.c
+++ b/tools/xl/xl_migrate.c
@@ -14,6 +14,7 @@ 
 
 #include <fcntl.h>
 #include <inttypes.h>
+#include <signal.h>
 #include <stdlib.h>
 #include <sys/stat.h>
 #include <sys/types.h>