2017-02-08 13:54:47 +01:00
|
|
|
--- a/jitterentropy.h.orig
|
|
|
|
+++ b/jitterentropy.h
|
|
|
|
@@ -42,11 +42,19 @@
|
2014-08-18 15:28:46 +02:00
|
|
|
#ifndef _JITTERENTROPY_H
|
|
|
|
#define _JITTERENTROPY_H
|
|
|
|
|
|
|
|
+#ifdef JITTERENTROPY_GENODE
|
|
|
|
+#include <jitterentropy-base-genode.h>
|
|
|
|
+#else
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
#include "jitterentropy-base-kernel.h"
|
|
|
|
#else
|
|
|
|
#include "jitterentropy-base-user.h"
|
|
|
|
#endif /* __KERNEL__ */
|
2017-02-08 13:54:47 +01:00
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
+extern "C" {
|
2014-08-18 15:28:46 +02:00
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* Statistical data from the entropy source */
|
|
|
|
struct entropy_stat {
|
2017-02-08 13:54:47 +01:00
|
|
|
@@ -171,4 +179,8 @@
|
|
|
|
|
|
|
|
/* -- END of statistical test function -- */
|
|
|
|
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
+}
|
|
|
|
+#endif /* extern "C" */
|
|
|
|
+
|
|
|
|
#endif /* _JITTERENTROPY_H */
|