]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
codec_dahdi: Fix poll.h include. 98/4498/1
authorTimo Teräs <timo.teras@iki.fi>
Thu, 17 Nov 2016 14:25:41 +0000 (16:25 +0200)
committerJoshua Colp <jcolp@digium.com>
Mon, 28 Nov 2016 12:57:12 +0000 (07:57 -0500)
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 8832bc31741956471459f9d9e1d7efda1e6d4bff..f207b64865e4606041b3111695f89d2ed48eaf25 100644 (file)
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
+#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"