Skip to content

Commit

Permalink
wrap: do not set _XOPEN_SOURCE on NetBSD
Browse files Browse the repository at this point in the history
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.

Fixes: https://todo.sr.ht/~rjarry/aerc/268
Signed-off-by: Kevin Bloom <[email protected]>
Signed-off-by: Matěj Cepl <[email protected]>
Acked-by: Moritz Poldrack <[email protected]>
Acked-by: Robin Jarry <[email protected]>
  • Loading branch information
ktnb-netbsd authored and rjarry committed Mar 6, 2025
1 parent 03777be commit 357c1bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions filters/wrap.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit 357c1bf

Please sign in to comment.