From dc327471b70e816f726a83b1a37bffef295dfe97 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 11 Oct 2010 09:11:20 -0400 Subject: [PATCH] Fix multiple inclusion guard in dlfcn.h and fix dlerror() prototype. --- compat/dlfcn.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compat/dlfcn.h b/compat/dlfcn.h index 931dd7ad9..469390b8f 100644 --- a/compat/dlfcn.h +++ b/compat/dlfcn.h @@ -14,11 +14,14 @@ * 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 -- 2.50.0