puts.c
changeset 1 9ccc1574a367
parent 0 7d3c07f8acfb
--- a/puts.c	Thu Dec 23 00:46:07 2010 +0100
+++ b/puts.c	Thu Dec 23 01:06:04 2010 +0100
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include "dl.h"
 
 /* shameless stolen from
@@ -12,7 +13,7 @@
     int rc;
 
     if (!orig)
-	orig = get_original_function("libc.so.6", "puts");
+	orig = lib_function("puts", NULL);
 
     (*orig)("<puts>");
     rc = (*orig)(s);