summaryrefslogtreecommitdiffstats
path: root/utils/lmbench/patches/001-fix_socklen_t_define.patch
blob: 967e207ccd8a1da28c03d470695337ab277420e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/bench.h
+++ b/src/bench.h
@@ -77,7 +77,7 @@ typedef long long int64;
 #endif /* HAVE_int64_t */
 #endif /* HAVE_int64 */
 
-#ifndef HAVE_socklen_t
+#if (!defined(HAVE_socklen_t) && !defined(__socklen_t_defined))
 typedef int socklen_t;
 #endif