Mercurial > mplayer.hg
changeset 35951:9b4ba0fb999b
build: Add _BSD_SOURCE definition for strsep().
author | diego |
---|---|
date | Sat, 23 Mar 2013 00:50:51 +0000 |
parents | 8023c4765019 |
children | 691431d2289e |
files | command.c configure libaf/af.c libmpcodecs/ve_lavc.c libmpcodecs/ve_x264.c libmpdemux/mf.c |
diffstat | 6 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/command.c Fri Mar 22 19:59:39 2013 +0000 +++ b/command.c Sat Mar 23 00:50:51 2013 +0000 @@ -16,6 +16,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#define _BSD_SOURCE + #include <stdlib.h> #include <inttypes.h> #include <unistd.h>
--- a/configure Fri Mar 22 19:59:39 2013 +0000 +++ b/configure Sat Mar 23 00:50:51 2013 +0000 @@ -4019,7 +4019,7 @@ echocheck "strsep()" strsep=yes def_strsep='#define HAVE_STRSEP 1' -statement_check string.h 'char *s = "Hello, world!"; strsep(&s, ",")' || +define_statement_check _BSD_SOURCE string.h 'char *s = "Hello, world!"; strsep(&s, ",")' || { strsep=no ; def_strsep='#undef HAVE_STRSEP' ; } echores "$strsep"
--- a/libaf/af.c Fri Mar 22 19:59:39 2013 +0000 +++ b/libaf/af.c Sat Mar 23 00:50:51 2013 +0000 @@ -16,6 +16,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#define _BSD_SOURCE + #include "config.h" #include <stdio.h> #include <stdlib.h>
--- a/libmpcodecs/ve_lavc.c Fri Mar 22 19:59:39 2013 +0000 +++ b/libmpcodecs/ve_lavc.c Sat Mar 23 00:50:51 2013 +0000 @@ -16,6 +16,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#define _BSD_SOURCE + #include <stdio.h> #include <stdlib.h> #include <string.h>