[Asterisk-code-review] codec dahdi: Fix poll.h include. (asterisk[14])

Joshua Colp asteriskteam at digium.com
Mon Nov 28 06:57:00 CST 2016


Joshua Colp has uploaded a new change for review. ( https://gerrit.asterisk.org/4497 )

Change subject: codec_dahdi: Fix poll.h include.
......................................................................

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
---
M codecs/codec_dahdi.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/97/4497/1

diff --git a/codecs/codec_dahdi.c b/codecs/codec_dahdi.c
index baa73f2..1f49339 100644
--- a/codecs/codec_dahdi.c
+++ b/codecs/codec_dahdi.c
@@ -36,11 +36,11 @@
 
 ASTERISK_REGISTER_FILE()
 
+#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"

-- 
To view, visit https://gerrit.asterisk.org/4497
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib318c1c7142a737bcf3caa4d8d72560bebe39252
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Timo Teräs <timo.teras at iki.fi>



More information about the asterisk-code-review mailing list