1 2 /* Web Polygraph http://www.web-polygraph.org/ 3 * Copyright 2003-2011 The Measurement Factory 4 * Licensed under the Apache License, Version 2.0 */ 5 6 #ifndef POLYGRAPH__XSTD_H_DLFCN_H 7 #define POLYGRAPH__XSTD_H_DLFCN_H 8 9 #if HAVE_DLFCN_H 10 #include <dlfcn.h> 11 #endif 12 13 #ifndef HAVE_DLOPEN dlopen(const char *,int)14 inline void *dlopen(const char *, int) { return 0; } dlsym(void *,const char *)15 inline void *dlsym(void *, const char *) { return 0; } dlerror()16 inline const char *dlerror() { return "loadable modules not supported"; } dlclose(void *)17 inline int dlclose(void *) { return -1; } 18 #endif 19 20 #endif 21