summaryrefslogtreecommitdiff
path: root/events.c
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2018-05-21 23:45:14 +0800
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-05-21 21:24:39 +0300
commit262fce3f7d37646e2d8937a20e2967bbf3c167cf (patch)
tree454e660fae16cff3fe430c9e9d1c9f05f63370c4 /events.c
parent34e9716fb28c4128d7cfee24a910a47abeb2aa98 (diff)
events: Switch to _DEFAULT_SOURCE
glibc version 2.27 warns that _BSD_SOURCE is deprecated in favour of _DEFAULT _SOURCE: # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" Fix the source code accordingly. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'events.c')
-rw-r--r--events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/events.c b/events.c
index 90d81c3..cc6c6cd 100644
--- a/events.c
+++ b/events.c
@@ -12,7 +12,7 @@
* Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
*/
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>