0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 09:19:51 +00:00
packages/libs/libesmtp/patches/010-gcc14.patch
Rosen Penev db1552fc2b libesmtp: fix compilation with GCC14
_GNU_SOURCE is needed for some functions.

Removed now pointless libpthread depedency.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-11-14 23:55:02 -08:00

28 lines
427 B
Diff

--- a/smtp-api.c
+++ b/smtp-api.c
@@ -22,6 +22,10 @@
#include <config.h>
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
--- a/smtp-tls.c
+++ b/smtp-tls.c
@@ -47,6 +47,11 @@
/* This stuff doesn't belong here */
/* vvvvvvvvvvv */
+
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>