Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser Add some prototypes for Android rump kernel ...
details: https://anonhg.NetBSD.org/src/rev/9d89fb1e11da
branches: trunk
changeset: 333476:9d89fb1e11da
user: justin <justin%NetBSD.org@localhost>
date: Wed Nov 05 12:28:46 2014 +0000
description:
Add some prototypes for Android rump kernel builds
See buildrump.sh #70, some Android versins are missing prototypes for
these libc functions
diffstat:
lib/librumpuser/rumpuser_port.h | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (41 lines):
diff -r c2c67ab9cf3e -r 9d89fb1e11da lib/librumpuser/rumpuser_port.h
--- a/lib/librumpuser/rumpuser_port.h Wed Nov 05 09:26:26 2014 +0000
+++ b/lib/librumpuser/rumpuser_port.h Wed Nov 05 12:28:46 2014 +0000
@@ -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 @@
}
#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 @@
# 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
Home |
Main Index |
Thread Index |
Old Index