ports/mail/mboxgrep/files/patch-src_mboxgrep.h
Stefan Eßer 540662a457 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.
2020-09-23 12:24:21 +00:00

36 lines
534 B
C

--- src/mboxgrep.h.orig 2003-04-06 21:01:49 UTC
+++ src/mboxgrep.h
@@ -28,6 +28,7 @@
#define HOST_NAME_SIZE 256
#include <config.h>
+#include <stdint.h>
#include <time.h> /* 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 */