]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
codec_dahdi: Fix poll.h include. 97/4497/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:56:45 +0000 (12:56 +0000)
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 baa73f229d5f73e64e627b6a470e099212750653..1f49339adecd42d8fddd806d95061789ff603d4d 100644 (file)
 
 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"