--- dlfcn.h.orig 2009-10-30 15:36:35.357902913 +0100 +++ dlfcn.h 2009-10-30 15:39:51.126664184 +0100 @@ -37,9 +37,17 @@ #define RTLD_DEFAULT 0 #define RTLD_NEXT 0 +#ifdef __cplusplus +extern "C" { +#endif + void *dlopen ( const char *file, int mode ); int dlclose( void *handle ); void *dlsym ( void *handle, const char *name ); char *dlerror( void ); +#ifdef __cplusplus +} +#endif + #endif /* DLFCN_H */