]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
xap_helper: enable stderr assignment on DragonFly
authorEric Wong <e@80x24.org>
Fri, 1 Dec 2023 02:07:05 +0000 (02:07 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Dec 2023 21:12:14 +0000 (21:12 +0000)
It looks like DragonFly inherited this from FreeBSD to
allow us to save us some syscalls.

lib/PublicInbox/xap_helper.h

index c1ab66f3ba4a7221ee533e3f130813a53547b14a..1f8c426b9ca4bbc07389cb799a31dd268c4c8d69 100644 (file)
@@ -64,7 +64,7 @@
 #      define MY_DO_OPTRESET() do { optind = optreset = 1; } while (0)
 #endif
 
-#if defined(__FreeBSD__) || defined(__GLIBC__)
+#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__GLIBC__)
 #      define STDERR_ASSIGNABLE (1)
 #else
 #      define STDERR_ASSIGNABLE (0)