diff mbox

[FFmpeg-devel] lavf/rtpproto: Use correct path when including poll.h

Message ID CAB0OVGqy51v8TXNoFb4PRe9zEMwNk3KbdWxBayutwJpSPVzdjw@mail.gmail.com
State Accepted
Headers show

Commit Message

Carl Eugen Hoyos Jan. 14, 2019, 5:24 p.m. UTC
Hi!

Attached patch fixes a warning when compiling with musl.

Please comment, Carl Eugen

Comments

Carl Eugen Hoyos Jan. 15, 2019, 11:10 p.m. UTC | #1
2019-01-14 18:24 GMT+01:00, Carl Eugen Hoyos <ceffmpeg@gmail.com>:

> Attached patch fixes a warning when compiling with musl.

Patch applied.

Carl Eugen
diff mbox

Patch

From 91aabded879973cd266988790e894fe687c69a0d Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Mon, 14 Jan 2019 18:21:15 +0100
Subject: [PATCH] lavf/rtpproto: Use the correct patch when including poll.h

Fixes a warning using musl:
In file included from libavformat/rtpproto.c:43:0:
/usr/local/musl/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
---
 libavformat/rtpproto.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index e706300..1f0a82a 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -40,7 +40,7 @@ 
 #include "os_support.h"
 #include <fcntl.h>
 #if HAVE_POLL_H
-#include <sys/poll.h>
+#include <poll.h>
 #endif
 
 typedef struct RTPContext {
-- 
1.7.10.4