clogger RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <e@yhbt.net>
To: clogger-public@yhbt.net
Subject: [PATCH] clogger: fix _BSD_SOURCE and _SVID_SOURCE deprecation warnings
Date: Mon,  3 Aug 2020 23:30:23 +0000	[thread overview]
Message-ID: <20200803233023.15717-1-e@yhbt.net> (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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/clogger/

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

  git send-email \
    --in-reply-to=20200803233023.15717-1-e@yhbt.net \
    --to=e@yhbt.net \
    --cc=clogger-public@yhbt.net \
    --subject='Re: [PATCH] clogger: fix _BSD_SOURCE and _SVID_SOURCE deprecation warnings' \
    /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

Code repositories for project(s) associated with this inbox:

	../../clogger.git

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).