summaryrefslogtreecommitdiff
path: root/textproc/atom/files/patch-msg.c
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2023-03-07 22:54:41 +0000
committerChris Rees <crees@FreeBSD.org>2023-03-07 22:55:35 +0000
commit6befd3347c1c883aacbc09ede82d311ddc3b8be9 (patch)
treedd332247e21f7e063ffc1b95a15c718dabb43d4c /textproc/atom/files/patch-msg.c
parentdatabases/postgresql10-*: Remove expired ports (diff)
textproc/atom: Fix build on head
Reported by: pointyhat
Diffstat (limited to 'textproc/atom/files/patch-msg.c')
-rw-r--r--textproc/atom/files/patch-msg.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/textproc/atom/files/patch-msg.c b/textproc/atom/files/patch-msg.c
new file mode 100644
index 000000000000..b03304be69a0
--- /dev/null
+++ b/textproc/atom/files/patch-msg.c
@@ -0,0 +1,14 @@
+--- msg.c.orig 2023-03-07 22:52:52 UTC
++++ msg.c
+@@ -194,11 +194,7 @@ parse_preface(const char *template) {
+ fmt[p++] = *template;
+ if (state == percent) {
+ if (*template == 's')
+-#if defined(_POSIX_SOURCE)
+ p += sprintf(fmt + p - 2, "%d", msg_severity) - 2;
+-#else
+- p = strchr(sprintf(fmt + p - 2, "%d", msg_severity), 0) - fmt;
+-#endif
+ state = normal;
+ } else if (*template == '%')
+ state = percent;