mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-11 13:16:08 +00:00
Fix Android build with latest bcopy/bzero changes
This commit is contained in:
parent
14ce5af688
commit
5430b70640
@ -17,6 +17,7 @@ SERVALD_LOCAL_CFLAGS = \
|
|||||||
-DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_POLL_H=1 -DHAVE_NETDB_H=1 \
|
-DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_POLL_H=1 -DHAVE_NETDB_H=1 \
|
||||||
-DHAVE_JNI_H=1 -DHAVE_STRUCT_UCRED=1 -DHAVE_CRYPTO_SIGN_NACL_GE25519_H=1 \
|
-DHAVE_JNI_H=1 -DHAVE_STRUCT_UCRED=1 -DHAVE_CRYPTO_SIGN_NACL_GE25519_H=1 \
|
||||||
-DBYTE_ORDER=_BYTE_ORDER -DHAVE_LINUX_STRUCT_UCRED \
|
-DBYTE_ORDER=_BYTE_ORDER -DHAVE_LINUX_STRUCT_UCRED \
|
||||||
|
-DHAVE_BCOPY -DHAVE_BZERO \
|
||||||
-I$(NACL_INC) \
|
-I$(NACL_INC) \
|
||||||
-I$(SQLITE3_INC)
|
-I$(SQLITE3_INC)
|
||||||
|
|
||||||
|
12
os.c
12
os.c
@ -30,18 +30,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef HAVE_BZERO
|
|
||||||
__SERVALDNA_OS_INLINE void bzero(void *buf, size_t len) {
|
|
||||||
memset(buf, 0, len);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef HAVE_BCOPY
|
|
||||||
__SERVALDNA_OS_INLINE void bcopy(void *src, void *dst, size_t len) {
|
|
||||||
memcpy(dst, src, len);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int mkdirs(const char *path, mode_t mode)
|
int mkdirs(const char *path, mode_t mode)
|
||||||
{
|
{
|
||||||
return mkdirsn(path, strlen(path), mode);
|
return mkdirsn(path, strlen(path), mode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user