From 1e3fd77084dedeb01719cb13e8c9af4195b053b0 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Thu, 1 Mar 2007 14:31:31 +0100 Subject: [PATCH] stkstring.h depends on (sprintf) --- lib/stkstring.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/stkstring.h b/lib/stkstring.h index f72d3c59..c075a3e6 100644 --- a/lib/stkstring.h +++ b/lib/stkstring.h @@ -10,6 +10,7 @@ #include #include +#include #define stk_strdup(s) ({ char *_s=(s); uns _l=strlen(_s)+1; char *_x=alloca(_l); memcpy(_x, _s, _l); _x; }) #define stk_strndup(s,n) ({ char *_s=(s); uns _l=strnlen(_s,(n)); char *_x=alloca(_l+1); memcpy(_x, _s, _l); _x[_l]=0; _x; }) -- 2.39.2