clogger RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] use _POSIX_C_SOURCE=200809L
@ 2023-03-19 19:37 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-03-19 19:37 UTC (permalink / raw)
  To: clogger-public

That's what _DEFAULT_SOURCE will set if it's respected, and
we've had POSIX 2008 goodies for 15 years, now.
---
 ext/clogger_ext/clogger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c
index 8cd40be..7989472 100644
--- a/ext/clogger_ext/clogger.c
+++ b/ext/clogger_ext/clogger.c
@@ -17,7 +17,7 @@
 #  include <fcntl.h>
 #endif
 #ifndef _POSIX_C_SOURCE
-#  define _POSIX_C_SOURCE 200112L
+#  define _POSIX_C_SOURCE 200809L
 #endif
 #include <time.h>
 #include <stdlib.h>

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

only message in thread, other threads:[~2023-03-19 19:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-19 19:37 [PATCH] use _POSIX_C_SOURCE=200809L Eric Wong

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

	https://yhbt.net/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).