Commit 0fc2a1e9 authored by Charlie Jacobsen's avatar Charlie Jacobsen
Browse files

Elide export symbol if we're not building libasync as a .ko.

The only time we need to build libasync as a .ko is if we want
to share the same instance of the code amongst other .ko's, for
example. Not needed right now (can just statically link the whole
library).
parent 1e968964
Subproject commit 2cef3d068d3ed2da556d775f8571f5c2c6b67d63
Subproject commit 532a1c497be328260fd4f4c32e97e9bd1ab6ec2d
......@@ -23,6 +23,11 @@
#include <lcd_config/post_hook.h>
#endif
#ifndef LINUX_KERNEL_MODULE
#undef EXPORT_SYMBOL
#define EXPORT_SYMBOL(x)
#endif
/*
* NOTE: This implementation right now is just a ring buffer.
* In the future, we probably want to change this to something
......
......@@ -51,6 +51,11 @@
#undef DEBUG_STACK
#endif
#ifndef LINUX_KERNEL_MODULE
#undef EXPORT_SYMBOL
#define EXPORT_SYMBOL(x)
#endif
#ifdef linux
#include <pthread.h>
#endif
......
......@@ -12,6 +12,11 @@
#include <lcd_config/post_hook.h>
#endif
#ifndef LINUX_KERNEL_MODULE
#undef EXPORT_SYMBOL
#define EXPORT_SYMBOL(x)
#endif
//assumes msg is a valid received message
static int thc_recv_predicate(struct fipc_message* msg, void* data)
{
......
......@@ -19,6 +19,11 @@
#include <lcd_config/post_hook.h>
#endif
#ifndef LINUX_KERNEL_MODULE
#undef EXPORT_SYMBOL
#define EXPORT_SYMBOL(x)
#endif
#define NOT_REACHED assert(0 && "Not reached")
#ifdef LINUX_KERNEL
#define DEBUGPRINTF printk
......
......@@ -15,7 +15,6 @@
#else
#include <stdint.h>
#include <stdlib.h>
#define EXPORT_SYMBOL(x)
#endif
#ifndef BARRELFISH
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment