Skip to content

Commit

Permalink
Don't include dlfcn.h when os-specific os_dlsym_default is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
akovalenko committed Nov 4, 2011
1 parent 451fe4b commit 99da854
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/os-common.c
Expand Up @@ -91,7 +91,6 @@ os_get_errno(void)
/* We start with a little greenspunning to make car, cdr and base-string data
* accessible. */

#include <dlfcn.h>
#include "genesis/config.h"
#include "genesis/cons.h"
#include "genesis/vector.h"
Expand Down Expand Up @@ -119,6 +118,9 @@ static inline lispobj cdr(lispobj conscell)
}

extern void undefined_alien_function(); /* see interrupt.c */
#ifndef HAVE_os_dlsym_default
#include <dlfcn.h>
#endif

void os_link_runtime()
{
Expand Down

0 comments on commit 99da854

Please sign in to comment.