Module Name: src Committed By: justin Date: Wed Nov 5 12:28:47 UTC 2014
Modified Files: src/lib/librumpuser: rumpuser_port.h Log Message: Add some prototypes for Android rump kernel builds See buildrump.sh #70, some Android versins are missing prototypes for these libc functions To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/lib/librumpuser/rumpuser_port.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumpuser/rumpuser_port.h diff -u src/lib/librumpuser/rumpuser_port.h:1.39 src/lib/librumpuser/rumpuser_port.h:1.40 --- src/lib/librumpuser/rumpuser_port.h:1.39 Wed Nov 5 01:37:27 2014 +++ src/lib/librumpuser/rumpuser_port.h Wed Nov 5 12:28:46 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser_port.h,v 1.39 2014/11/05 01:37:27 pooka Exp $ */ +/* $NetBSD: rumpuser_port.h,v 1.40 2014/11/05 12:28:46 justin Exp $ */ #ifndef _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_ #define _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_ @@ -92,12 +92,20 @@ getsubopt(char **optionp, char * const * } #endif +#if !defined(HAVE_CLOCKID_T) +typedef int clockid_t; +#endif + #ifdef __ANDROID__ #include <stdint.h> typedef uint16_t in_port_t; #include <sys/select.h> #define atomic_inc_uint(x) __sync_fetch_and_add(x, 1) #define atomic_dec_uint(x) __sync_fetch_and_sub(x, 1) +#include <time.h> +int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *); +#include <stdlib.h> +void arc4random_buf(void*, size_t); #endif /* sunny magic */ @@ -108,10 +116,6 @@ typedef uint16_t in_port_t; # endif #endif -#if !defined(HAVE_CLOCKID_T) -typedef int clockid_t; -#endif - #if !defined(HAVE_CLOCK_GETTIME) #include <sys/time.h> #define CLOCK_REALTIME 0