]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
codec_dahdi: Fix poll.h include. 66/4466/1
authorTimo Teräs <timo.teras@iki.fi>
Thu, 17 Nov 2016 14:25:41 +0000 (16:25 +0200)
committerTimo Teräs <timo.teras@iki.fi>
Thu, 17 Nov 2016 14:26:21 +0000 (16:26 +0200)
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

index 2d08d36cd57b3a181ffb50762527fe8f952ea0da..efb016853a9a0874f7977f895629289e54d8a546 100644 (file)
 #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"