~rjarry/aerc#268: 
Unnecessary _XOPEN_SOURCE define on NetBSD

On NetBSD, we don't need the define in filters/wrap.c line 4. If it is left there, we get errors about not having locale_t defined. Removing it will fix these errors. I'm not sure if this same thing happens on other BSDs or not.

--- filters/wrap.c.orig 2024-07-21 02:04:53.703418963 +0000
+++ filters/wrap.c
@@ -1,7 +1,9 @@
 /* SPDX-License-Identifier: MIT */
 /* Copyright (c) 2023 Robin Jarry */

+#ifndef __NetBSD__
 #define _XOPEN_SOURCE 700
+#endif
 #include <errno.h>
 #include <getopt.h>
 #include <langinfo.h>

Thank you!

Status
REPORTED
Submitter
~ktnb
Assigned to
No-one
Submitted
6 months ago
Updated
30 days ago
Labels
No labels applied.

~rjarry a month ago

Hello, could you submit a patch on aerc-devel?

~ktnb 30 days ago

Yes, I can do that. I've not setup the appropriate git email to submit it yet. Once I've got more time, I can do that. Thank you!

Register here or Log in to comment, or comment via email.