clogger RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] clogger: fix _BSD_SOURCE and _SVID_SOURCE deprecation warnings
@ 2020-08-03 23:30 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2020-08-03 23:30 UTC (permalink / raw)
  To: clogger-public

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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-03 23:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03 23:30 [PATCH] clogger: fix _BSD_SOURCE and _SVID_SOURCE deprecation warnings Eric Wong

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