blob: 4ad9c7e9c5926cb5bec44239b668e8d6c2f7f582 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
require 'formula'
class P11Kit < Formula
url 'http://p11-glue.freedesktop.org/releases/p11-kit-0.6.tar.gz'
homepage 'http://p11-glue.freedesktop.org'
md5 'c1ff3e52f172fda8bf3b426f7fb63c92'
def patches
# Patch to get PATH_MAX; fixed upstream:
# http://cgit.freedesktop.org/p11-glue/p11-kit/commit/?id=8054865
DATA
end
def install
ENV.universal_binary
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make check"
system "make install"
end
end
__END__
diff --git a/p11-kit/modules.c b/p11-kit/modules.c
index 3f1eae1..4c87cee 100644
--- a/p11-kit/modules.c
+++ b/p11-kit/modules.c
@@ -50,11 +50,12 @@
#include <dirent.h>
#include <dlfcn.h>
#include <errno.h>
+#include <limits.h>
#include <pthread.h>
#include <stdarg.h>
#include <stddef.h>
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
|