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
This commit is contained in:
parent
2f85bf6e8e
commit
0e9cb8bed8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18799
@ -27,7 +27,7 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* 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.
|
* dl*() prototypes.
|
||||||
*/
|
*/
|
||||||
extern void *dlopen __P((char *, int));
|
extern void *dlopen __P((const char *, int));
|
||||||
extern int dlclose __P((void *));
|
extern int dlclose __P((void *));
|
||||||
extern void *dlsym __P((void *, char *));
|
extern void *dlsym __P((void *, const char *));
|
||||||
extern char *dlerror __P((void));
|
extern char *dlerror __P((void));
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* 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.
|
* dl*() prototypes.
|
||||||
*/
|
*/
|
||||||
extern void *dlopen __P((char *, int));
|
extern void *dlopen __P((const char *, int));
|
||||||
extern int dlclose __P((void *));
|
extern int dlclose __P((void *));
|
||||||
extern void *dlsym __P((void *, char *));
|
extern void *dlsym __P((void *, const char *));
|
||||||
extern char *dlerror __P((void));
|
extern char *dlerror __P((void));
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* 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.
|
* dl*() prototypes.
|
||||||
*/
|
*/
|
||||||
extern void *dlopen __P((char *, int));
|
extern void *dlopen __P((const char *, int));
|
||||||
extern int dlclose __P((void *));
|
extern int dlclose __P((void *));
|
||||||
extern void *dlsym __P((void *, char *));
|
extern void *dlsym __P((void *, const char *));
|
||||||
extern char *dlerror __P((void));
|
extern char *dlerror __P((void));
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user