libxc: drop double un?lock_pages definition to fix static linking
PATCH 1/1 libxc: drop double un?lock_pages definition to fix static linking
libxc: drop double un?lock_pages definition to fix static linking
Signed-off-by Samuel Thibault <[email protected]>
tools/libxc/xg_private.c +0 -16
@@ -11,22 +11,6 @@#include <malloc.h> #include "xg_private.h" - -int lock_pages (void *addr,size_t len) -{ -int e =0 ; -#ifndef __sun__ - e =mlock (addr, len); -#endif -return (e); -} - -void unlock_pages (void *addr,size_t len) -{ -#ifndef __sun__ -safe_munlock (addr, len); -#endif -}char *xc_read_image (const char *filename,unsigned long *size) {