blob: 623f93a6b1f52cd671c7c1a12faec52005bc6d04 (
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
|
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
|