From 349e08cb482cb99df7f14a3f0c06756f5eb55828 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
Date: Thu, 17 Nov 2016 16:25:41 +0200
Subject: [PATCH] codec_dahdi: Fix poll.h include.

POSIX defines poll.h. sys/poll.h should not be used as it is c-library
internal header which may or may not exist. Notably in musl including
sys/poll.h generates warning of being incorrect.

Change-Id: Ib318c1c7142a737bcf3caa4d8d72560bebe39252
---
 codecs/codec_dahdi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/codecs/codec_dahdi.c b/codecs/codec_dahdi.c
index 2d08d36cd5..efb016853a 100644
--- a/codecs/codec_dahdi.c
+++ b/codecs/codec_dahdi.c
@@ -34,11 +34,11 @@
 #include "asterisk.h"
 #include <stdbool.h>
 
+#include <poll.h>
 #include <fcntl.h>
 #include <netinet/in.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
-#include <sys/poll.h>
 #include <dahdi/user.h>
 
 #include "asterisk/lock.h"
-- 
GitLab