blob: d7169495fa61ec2c243ffefc332285765ae679da [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From ac1657e11cbb0545bdf4d1124def8c013958ed7e Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 12 Jul 2017 18:08:51 -0700
Brad Bishop316dfdd2018-06-25 12:45:53 -04004Subject: [PATCH] Check for musl define guard before redefining socklen_t
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005
6musl uses __DEFINED_socklen_t so check for that as well
7along with HAVE_socklen_t
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
Brad Bishop316dfdd2018-06-25 12:45:53 -040010
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011---
12 src/bench.h | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/bench.h b/src/bench.h
16index 597d068..2ebdf5a 100644
17--- a/src/bench.h
18+++ b/src/bench.h
19@@ -77,7 +77,7 @@ typedef long long int64;
20 #endif /* HAVE_int64_t */
21 #endif /* HAVE_int64 */
22
23-#ifndef HAVE_socklen_t
24+#if !defined(HAVE_socklen_t) && !defined(__DEFINED_socklen_t)
25 typedef int socklen_t;
26 #endif
27