diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/os_support.c | 4 | ||||
-rw-r--r-- | libavformat/rtpdec.c | 3 | ||||
-rw-r--r-- | libavformat/rtsp.c | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c index cc109d5..3357595 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -19,6 +19,10 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ + +/* needed by inet_aton() */ +#define _SVID_SOURCE + #include "config.h" #include "avformat.h" #include <unistd.h> diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index e469a59..3500cad 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -19,6 +19,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +/* needed for gethostname() */ +#define _XOPEN_SOURCE 500 + #include "libavcodec/bitstream.h" #include "avformat.h" #include "mpegts.h" diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index d1f454d..a3af365 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -19,6 +19,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +/* needed by inet_aton() */ +#define _SVID_SOURCE + #include "libavutil/avstring.h" #include "avformat.h" |