summaryrefslogtreecommitdiffstats
path: root/main/libc0.9.32/0023-crypt-build-fix.-define-ARRAY_SIZE-macro.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-01-02 10:06:42 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-01-02 10:06:42 +0000
commitdbee1f2c9e8313343fa945194cb0d230bad8892c (patch)
treef8da89f03be446f573089d95ae686e701082946f /main/libc0.9.32/0023-crypt-build-fix.-define-ARRAY_SIZE-macro.patch
parent431dfa4619c52a2fff537fb997dbe8b8e44f2f03 (diff)
parentdaafae5c7c194f4d3ba052691a043da06c294a46 (diff)
downloadaports-dbee1f2c9e8313343fa945194cb0d230bad8892c.tar.bz2
aports-dbee1f2c9e8313343fa945194cb0d230bad8892c.tar.xz
Merge branch 'master' of ssh://dev.alpinelinux.org/home/fcolista/cgit/aports-fcolista
Diffstat (limited to 'main/libc0.9.32/0023-crypt-build-fix.-define-ARRAY_SIZE-macro.patch')
-rw-r--r--main/libc0.9.32/0023-crypt-build-fix.-define-ARRAY_SIZE-macro.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/libc0.9.32/0023-crypt-build-fix.-define-ARRAY_SIZE-macro.patch b/main/libc0.9.32/0023-crypt-build-fix.-define-ARRAY_SIZE-macro.patch
new file mode 100644
index 000000000..623f93a6b
--- /dev/null
+++ b/main/libc0.9.32/0023-crypt-build-fix.-define-ARRAY_SIZE-macro.patch
@@ -0,0 +1,26 @@
+From b7300840e0285239351e33fa613898fbb079efd7 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Fri, 23 Dec 2011 16:24:52 +0100
+Subject: [PATCH] crypt: build fix. define ARRAY_SIZE macro
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ libcrypt/crypt.c | 2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/libcrypt/crypt.c b/libcrypt/crypt.c
+index 188a6a0..19f14d9 100644
+--- a/libcrypt/crypt.c
++++ b/libcrypt/crypt.c
+@@ -12,6 +12,8 @@
+ #include <errno.h>
+ #include "libcrypt.h"
+
++#define ARRAY_SIZE(v) (sizeof(v) / sizeof((v)[0]))
++
+ typedef char *(*crypt_impl_f)(const unsigned char *pw, const unsigned char *salt);
+
+ static const struct {
+--
+1.7.8
+