[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#861598: libdebian-installer: please use POSIX-compliant poll.h header



Source: libdebian-installer
Version: 0.110
Severity: wishlist
Tags: patch

Hi,

Helmut Grohne noticed that libdebian-installer fails to build with musl,
because it builds with -Werror and includes sys/poll.h, which triggers
a warning in musl, as it is not the POSIX-specified location.

Regards,
  Reiner
From 45b5e23eb54a7da2da3d98af9732c89ff6d6304c Mon Sep 17 00:00:00 2001
From: Reiner Herrmann <reiner@reiner-h.de>
Date: Mon, 1 May 2017 11:14:11 +0200
Subject: [PATCH] Include poll.h instead of sys/poll.h

---
 src/exec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/exec.c b/src/exec.c
index b435063..2815bbd 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -25,10 +25,10 @@
 
 #include <errno.h>
 #include <fcntl.h>
+#include <poll.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/poll.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/wait.h>
-- 
2.11.0

Attachment: signature.asc
Description: PGP signature


Reply to: