clogger RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <>
Subject: [PATCH] clogger: fix _BSD_SOURCE and _SVID_SOURCE deprecation warnings
Date: Mon,  3 Aug 2020 23:30:23 +0000	[thread overview]
Message-ID: <> (raw)

Apparently, _DEFAULT_SOURCE is now the recommended macro to
define for _BSD_SOURCE and _SVID_SOURCE features.
 ext/clogger_ext/clogger.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c
index a1f3bc4..a3de120 100644
--- a/ext/clogger_ext/clogger.c
+++ b/ext/clogger_ext/clogger.c
@@ -1,3 +1,6 @@
+/* quiet deprecation for _BSD_SOURCE and _SVID_SOURCE: */
+#define _DEFAULT_SOURCE 1
 #include <ruby.h>
 #ifdef HAVE_RUBY_IO_H
 #  include <ruby/io.h>

                 reply	other threads:[~2020-08-03 23:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

  List information:

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

  git send-email \ \ \ \

* 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.
Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).