]> granicus.if.org Git - sudo/commitdiff
Fix multiple inclusion guard in dlfcn.h and fix dlerror() prototype.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 11 Oct 2010 13:11:20 +0000 (09:11 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 11 Oct 2010 13:11:20 +0000 (09:11 -0400)
compat/dlfcn.h

index 931dd7ad9eb5ff161d39cdae873268317420fd21..469390b8f93a16edf48a4522f53859fee111a373 100644 (file)
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#ifndef _DLFCN_H_
+#define _DLFCN_H_
+
 /* Emulated functions. */
 void *dlopen(const char *path, int mode);
 int dlclose(void *handle);
 void *dlsym(void *handle, const char *symbol);
-const char *dlerror(void);
+char *dlerror(void);
 
 /* Values for dlopen() mode. */
 #define RTLD_LAZY      0x1