# HG changeset patch # User aurel # Date 1218751319 0 # Node ID 68749aaea50fc4bb8bbf3f881889ebff2e94e460 # Parent caecb9f780a153937ab62b16196b9a694634fd91 ensure we get explicit definition of various _XOPEN_SOURCE functions we use diff -r caecb9f780a1 -r 68749aaea50f os_support.c --- a/os_support.c Thu Aug 14 21:48:02 2008 +0000 +++ b/os_support.c Thu Aug 14 22:01:59 2008 +0000 @@ -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 diff -r caecb9f780a1 -r 68749aaea50f rtpdec.c --- a/rtpdec.c Thu Aug 14 21:48:02 2008 +0000 +++ b/rtpdec.c Thu Aug 14 22:01:59 2008 +0000 @@ -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 -r caecb9f780a1 -r 68749aaea50f rtsp.c --- a/rtsp.c Thu Aug 14 21:48:02 2008 +0000 +++ b/rtsp.c Thu Aug 14 22:01:59 2008 +0000 @@ -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"