devel/adb: new port
This commit is contained in:
8
devel/adb/files/compat-string.h
Normal file
8
devel/adb/files/compat-string.h
Normal file
@@ -0,0 +1,8 @@
|
||||
/* OpenBSD compat: add mempcpy (GNU extension) via #include_next wrapper */
|
||||
#pragma once
|
||||
#include_next <string.h>
|
||||
#ifndef mempcpy
|
||||
static inline void *mempcpy(void *dst, const void *src, size_t n) {
|
||||
return (char *)memcpy(dst, src, n) + n;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user