Skip to contentSkip to conversation

libxc: drop double un?lock_pages definition to fix static linking

PATCH New Samuel Thibault 1 participant 1 message May 22, 2008

lore
Share & tools
lore
#0 lore raw

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

tools/libxc/xg_private.c +0 -16
diff -r 9c41853c71a1 tools/libxc/xg_private.c
@@ -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)
 {