From: Ken'ichi Ohmichi Date: Mon, 2 Mar 2009 06:43:16 +0000 (+0900) Subject: Fix a compiling warning X-Git-Tag: v0.34~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b96be57553709e88783791dee19f353c62fd76e;p=thirdparty%2Flibcgroup.git Fix a compiling warning This patch fixes the following warning of libcgroup-0.33. $ make flex lex.l byacc -v -d parse.y byacc: 2 shift/reduce conflicts cc -g -O2 -I. -shared -fPIC -Wl,--soname,libcgroup.so.1 -o libcgroup.so \ -Wl,--version-script,libcgroup.map,--allow-shlib-undefined \ api.c wrapper.c lex.yy.c y.tab.c config.c lex.l: In function 'yylex': lex.l:30: warning: incompatible implicit declaration of built-in function 'strdup' [snip] $ Signed-off-by: Ken'ichi Ohmichi Signed-off-by: Dhaval Giani --- diff --git a/lex.l b/lex.l index f9cc1ae6..48a53b47 100644 --- a/lex.l +++ b/lex.l @@ -12,6 +12,7 @@ */ %{ +#include #include "y.tab.h" int line_no = 1;