]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_unload_cache): Cast first argument of munmap.
authorUlrich Drepper <drepper@redhat.com>
Mon, 5 Oct 1998 10:00:09 +0000 (10:00 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 5 Oct 1998 10:00:09 +0000 (10:00 +0000)
sysdeps/generic/dl-cache.c

index 7522b3e886b68cbb815dd209894d733a78265f64..2a09050fb7b43497be861acd776500db4e3abc60 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <link.h>
 #include <stddef.h>
+#include <sys/types.h>
 #include <sys/mman.h>
 
 /* System-dependent function to read a file's whole contents
@@ -114,7 +115,7 @@ _dl_unload_cache (void)
 {
   if (cache != NULL && cache != (struct cache_file *) -1)
     {
-      __munmap (cache, cachesize);
+      __munmap ((caddr_t) cache, cachesize);
       cache = NULL;
     }
 }