Fix Android build with latest bcopy/bzero changes

This commit is contained in:
Andrew Bettison 2013-02-26 11:34:41 +10:30
parent 14ce5af688
commit 5430b70640
2 changed files with 1 additions and 12 deletions

View File

@ -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_JNI_H=1 -DHAVE_STRUCT_UCRED=1 -DHAVE_CRYPTO_SIGN_NACL_GE25519_H=1 \
-DBYTE_ORDER=_BYTE_ORDER -DHAVE_LINUX_STRUCT_UCRED \
-DHAVE_BCOPY -DHAVE_BZERO \
-I$(NACL_INC) \
-I$(SQLITE3_INC)

12
os.c
View File

@ -30,18 +30,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <time.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)
{
return mkdirsn(path, strlen(path), mode);