summaryrefslogtreecommitdiffstats
path: root/include/link.h
diff options
context:
space:
mode:
authorscrappy <scrappy@FreeBSD.org>1996-10-07 20:49:03 +0000
committerscrappy <scrappy@FreeBSD.org>1996-10-07 20:49:03 +0000
commit417a88b9aae05788ac887c8128df06ecc1bb627c (patch)
treeffcd97d95232059a7cda9829e154a58090d5915e /include/link.h
parent2ed8e17b91b3edbc3ff6e02902cd71e89b021371 (diff)
downloadFreeBSD-src-417a88b9aae05788ac887c8128df06ecc1bb627c.zip
FreeBSD-src-417a88b9aae05788ac887c8128df06ecc1bb627c.tar.gz
dlfcn.h and link.h have conflicting declarations for dlopen/dlsym,
with dlfcn.h declaring them as: void *dlopen __P((const char *, int)); void *dlsym __P((void *, const char *)); while link.h declared them as extern void *dlopen __P((char *, int)); extern void *dlsym __P((void *, char *)); Fix link.h to match dlfcn.h
Diffstat (limited to 'include/link.h')
-rw-r--r--include/link.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/link.h b/include/link.h
index 7d35e02..0225630 100644
--- a/include/link.h
+++ b/include/link.h
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: link.h,v 1.6 1996/01/30 23:30:20 mpp Exp $
+ * $Id: link.h,v 1.7 1996/10/01 00:25:32 peter Exp $
*/
/*
@@ -184,9 +184,9 @@ struct ld_entry {
/*
* dl*() prototypes.
*/
-extern void *dlopen __P((char *, int));
+extern void *dlopen __P((const char *, int));
extern int dlclose __P((void *));
-extern void *dlsym __P((void *, char *));
+extern void *dlsym __P((void *, const char *));
extern char *dlerror __P((void));
OpenPOWER on IntegriCloud