Diff between 14bb94a4dc2bab3befb5d40acfde5415542ecbaa and 5622a292a71e7ff197f7a6ddb5ce280d00e1e9f3

Changed Files

File Additions Deletions Status
src/shared/ringbuf.c +4 -0 modified

Full Patch

diff --git a/src/shared/ringbuf.c b/src/shared/ringbuf.c
index 223ec5f..fa783c1 100644
--- a/src/shared/ringbuf.c
+++ b/src/shared/ringbuf.c
@@ -33,6 +33,10 @@
 #include "util.h"
 #include "ringbuf.h"
 
+#ifndef MIN
+#define MIN(x,y) ((x)<(y)?(x):(y))
+#endif
+
 struct ringbuf {
 	void *buffer;
 	size_t size;