Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: mkl@pengutronix.de (Marc Kleine-Budde)
Subject: [lttng-dev] [PATCH] urcu: fix deprecation warning with new glibc
Date: Mon,  1 Jun 2015 15:16:30 +0200	[thread overview]
Message-ID: <1433164590-9078-1-git-send-email-mkl@pengutronix.de> (raw)

This patch fixes the following warning:

/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
 urcu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/urcu.c b/urcu.c
index 1429f6dfbbd3..6f5b1e01ea04 100644
--- a/urcu.c
+++ b/urcu.c
@@ -26,6 +26,7 @@
 #define _BSD_SOURCE
 #define _GNU_SOURCE
 #define _LGPL_SOURCE
+#define _DEFAULT_SOURCE
 #include <stdio.h>
 #include <pthread.h>
 #include <signal.h>
-- 
2.1.4




             reply	other threads:[~2015-06-01 13:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-01 13:16 Marc Kleine-Budde [this message]
2015-06-01 14:25 ` Mathieu Desnoyers
2015-06-01 15:16   ` Marc Kleine-Budde
2015-06-01 15:25     ` Mathieu Desnoyers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1433164590-9078-1-git-send-email-mkl@pengutronix.de \
    --to=mkl@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox