summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-12-13 22:40:56 +0100
committerAlfred E. Heggestad <aeh@db.org>2015-12-13 22:40:56 +0100
commit6a8e3d34355826b66457c86424e8c7f3e8a8260a (patch)
tree065ea3205ee4d65e1d8c04b9da751cb3139a7c2a
parent20489f9370f32a2f1fab6ba063c0898eaf5271e4 (diff)
parenta23c24f9d50b7045f9472193b6d221551010be59 (diff)
Merge pull request #94 from sreimers/master
fixes alfredh/baresip#93 glibc >=2.20 _BSD_SOURCE warning
-rw-r--r--modules/aufile/aufile.c2
-rw-r--r--modules/avformat/avformat.c1
-rw-r--r--modules/cairo/cairo.c1
-rw-r--r--modules/fakevideo/fakevideo.c1
-rw-r--r--modules/gst_video/encode.c2
-rw-r--r--modules/rst/audio.c2
-rw-r--r--modules/rst/video.c2
-rw-r--r--modules/snapshot/png_vf.c1
-rw-r--r--modules/v4l/v4l.c1
-rw-r--r--modules/v4l2/v4l2.c1
-rw-r--r--modules/vidloop/vidloop.c1
-rw-r--r--modules/x11grab/x11grab.c1
-rw-r--r--src/audio.c1
-rw-r--r--src/conf.c1
14 files changed, 14 insertions, 4 deletions
diff --git a/modules/aufile/aufile.c b/modules/aufile/aufile.c
index 0fc9faa..9422b7a 100644
--- a/modules/aufile/aufile.c
+++ b/modules/aufile/aufile.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2015 Creytiv.com
*/
-
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <pthread.h>
#include <re.h>
diff --git a/modules/avformat/avformat.c b/modules/avformat/avformat.c
index 8424707..cabb103 100644
--- a/modules/avformat/avformat.c
+++ b/modules/avformat/avformat.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 - 2015 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <unistd.h>
#include <string.h>
diff --git a/modules/cairo/cairo.c b/modules/cairo/cairo.c
index 7ca83b1..438e654 100644
--- a/modules/cairo/cairo.c
+++ b/modules/cairo/cairo.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <unistd.h>
#include <pthread.h>
diff --git a/modules/fakevideo/fakevideo.c b/modules/fakevideo/fakevideo.c
index 2c85372..c750814 100644
--- a/modules/fakevideo/fakevideo.c
+++ b/modules/fakevideo/fakevideo.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <unistd.h>
#include <pthread.h>
diff --git a/modules/gst_video/encode.c b/modules/gst_video/encode.c
index 948b98a..8abe017 100644
--- a/modules/gst_video/encode.c
+++ b/modules/gst_video/encode.c
@@ -4,7 +4,7 @@
* Copyright (C) 2010 - 2013 Creytiv.com
* Copyright (C) 2014 Fadeev Alexander
*/
-
+#define _DEFAULT_SOURCE 1
#define __USE_POSIX199309
#define _BSD_SOURCE 1
#include <stdlib.h>
diff --git a/modules/rst/audio.c b/modules/rst/audio.c
index f6dd4e8..8dc5175 100644
--- a/modules/rst/audio.c
+++ b/modules/rst/audio.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2011 Creytiv.com
*/
-
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <pthread.h>
#include <fcntl.h>
diff --git a/modules/rst/video.c b/modules/rst/video.c
index 139c9f7..b252504 100644
--- a/modules/rst/video.c
+++ b/modules/rst/video.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2011 Creytiv.com
*/
-
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <pthread.h>
#include <string.h>
diff --git a/modules/snapshot/png_vf.c b/modules/snapshot/png_vf.c
index d7f1f8a..6c5c18a 100644
--- a/modules/snapshot/png_vf.c
+++ b/modules/snapshot/png_vf.c
@@ -4,6 +4,7 @@
* Author: Doug Blewett
* Review: Alfred E. Heggestad
*/
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <string.h>
#include <time.h>
diff --git a/modules/v4l/v4l.c b/modules/v4l/v4l.c
index e6842b1..46d4ca7 100644
--- a/modules/v4l/v4l.c
+++ b/modules/v4l/v4l.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <unistd.h>
#include <stdlib.h>
diff --git a/modules/v4l2/v4l2.c b/modules/v4l2/v4l2.c
index 0dbad00..b450a9e 100644
--- a/modules/v4l2/v4l2.c
+++ b/modules/v4l2/v4l2.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <unistd.h>
#include <stdlib.h>
diff --git a/modules/vidloop/vidloop.c b/modules/vidloop/vidloop.c
index ff38281..9d05618 100644
--- a/modules/vidloop/vidloop.c
+++ b/modules/vidloop/vidloop.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <string.h>
#include <time.h>
diff --git a/modules/x11grab/x11grab.c b/modules/x11grab/x11grab.c
index 1ab88ed..ecbcba5 100644
--- a/modules/x11grab/x11grab.c
+++ b/modules/x11grab/x11grab.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <unistd.h>
#ifndef SOLARIS
diff --git a/src/audio.c b/src/audio.c
index 78e3a9b..c8996f2 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -4,6 +4,7 @@
* Copyright (C) 2010 Creytiv.com
* \ref GenericAudioStream
*/
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <string.h>
#include <stdlib.h>
diff --git a/src/conf.c b/src/conf.c
index 9122e52..dcf9832 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _BSD_SOURCE 1
#include <fcntl.h>
#ifdef HAVE_UNISTD_H