[Asterisk-code-review] codec dahdi: Fix poll.h include. (asterisk[master])
Timo Teräs
asteriskteam at digium.com
Thu Nov 17 08:28:17 CST 2016
Timo Teräs has uploaded a new change for review. ( https://gerrit.asterisk.org/4466 )
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/66/4466/1
diff --git a/codecs/codec_dahdi.c b/codecs/codec_dahdi.c
index 2d08d36..efb0168 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"
--
To view, visit https://gerrit.asterisk.org/4466
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib318c1c7142a737bcf3caa4d8d72560bebe39252
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Timo Teräs <timo.teras at iki.fi>
More information about the asterisk-code-review
mailing list