summaryrefslogtreecommitdiff
path: root/mail/mail-notification/patches/patch-ae
blob: 6ae7695228bc3f8a28258a13d3a2156e6cb6f236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ae,v 1.1 2006/08/03 00:39:24 rillig Exp $

Solaris 8 has <inttypes.h>, but not u_int32_t.

--- src/mn-md5.h.orig	2005-06-11 01:19:32.000000000 +0200
+++ src/mn-md5.h	2006-08-01 11:18:34.558138839 +0200
@@ -29,6 +29,12 @@
 #ifndef _MN_MD5_H
 #define _MN_MD5_H
 
+#ifdef HAVE_INTTYPES_H
+#  include <inttypes.h>
+#  if defined(__sun) && !defined(u_int32_t)
+#    define u_int32_t uint32_t
+#  endif
+#endif
 #include <sys/types.h>
 
 typedef struct