have ring_buffer built on non-haiku platforms

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18391 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-08-04 19:20:01 +00:00
parent b526381437
commit 6a6c43798f

View File

@ -7,11 +7,16 @@
#include "ring_buffer.h"
#include <KernelExport.h>
#if 0
#include <port.h>
#endif
#include <stdlib.h>
#include <string.h>
#ifndef HAIKU_TARGET_PLATFORM_HAIKU
#define user_memcpy(x...) (memcpy(x), B_OK)
#endif
/** This is a light-weight ring_buffer implementation.
* It does not provide any locking - you are supposed to ensure thread-safety