From 540662a45772c921857e51c29031d8bce7b18172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Wed, 23 Sep 2020 12:24:21 +0000 Subject: Fix build with -fno-common Since files that are patched in legacy patch files are affected, all patches are regenerated with make makepatch. In order to have makepatch operate on only the patched sources without the result of RE_INPLACE being integrated into the patch files, move the in-place editing of sources from post-patch to pre-build. --- mail/mboxgrep/files/patch-src_mboxgrep.h | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 mail/mboxgrep/files/patch-src_mboxgrep.h (limited to 'mail/mboxgrep/files/patch-src_mboxgrep.h') diff --git a/mail/mboxgrep/files/patch-src_mboxgrep.h b/mail/mboxgrep/files/patch-src_mboxgrep.h new file mode 100644 index 000000000000..3552201d7072 --- /dev/null +++ b/mail/mboxgrep/files/patch-src_mboxgrep.h @@ -0,0 +1,35 @@ +--- src/mboxgrep.h.orig 2003-04-06 21:01:49 UTC ++++ src/mboxgrep.h +@@ -28,6 +28,7 @@ + #define HOST_NAME_SIZE 256 + + #include ++#include + + #include /* for tm structure */ + +@@ -99,10 +100,15 @@ typedef struct + } + folder_t; + ++typedef union { ++ uint64_t halves[2]; ++ unsigned char bytes[16]; ++} md5_t; ++ + typedef struct + { +- char **md5; + int n; ++ md5_t md5s[]; + } + checksum_t; + +@@ -129,6 +135,6 @@ typedef struct + } + option_t; + +-option_t config; ++extern option_t config; + + #endif /* MBOXGREP_H */ -- cgit v1.2.3