SmartAudio/package/utils/lmbench/patches/001-fix_socklen_t_define.patch

11 lines
253 B
Diff
Raw Normal View History

2018-07-13 01:31:50 +00:00
--- 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