797dbacc35e2edba8f2530eedb54f5637c3ece39
[openwrt/svn-archive/archive.git] / net / unfs3 / patches / 100-no_lfl.patch
1 Index: unfs3-0.9.17/Makefile.in
2 ===================================================================
3 --- unfs3-0.9.17.orig/Makefile.in 2007-07-28 22:40:02.000000000 +0200
4 +++ unfs3-0.9.17/Makefile.in 2007-07-28 22:40:02.000000000 +0200
5 @@ -11,7 +11,7 @@
6 md5.o mount.o nfs.o password.o readdir.o user.o xdr.o winsupport.o
7 CONFOBJ = Config/lib.a
8 EXTRAOBJ = @EXTRAOBJ@
9 -LDFLAGS = @LDFLAGS@ @LIBS@ @LEXLIB@
10 +LDFLAGS = @LDFLAGS@ @LIBS@
11 EXEEXT = @EXEEXT@
12
13 prefix = @prefix@
14 Index: unfs3-0.9.17/configure
15 ===================================================================
16 --- unfs3-0.9.17.orig/configure 2007-07-28 22:40:02.000000000 +0200
17 +++ unfs3-0.9.17/configure 2007-07-28 22:40:02.000000000 +0200
18 @@ -2122,7 +2122,7 @@
19 echo $ECHO_N "(cached) $ECHO_C" >&6
20 else
21 ac_check_lib_save_LIBS=$LIBS
22 -LIBS="-lfl $LIBS"
23 +LIBS="$LIBS"
24 cat >conftest.$ac_ext <<_ACEOF
25 /* confdefs.h. */
26 _ACEOF
27 Index: unfs3-0.9.17/Config/lex.yy.c
28 ===================================================================
29 --- unfs3-0.9.17.orig/Config/lex.yy.c 2007-07-28 22:40:21.000000000 +0200
30 +++ unfs3-0.9.17/Config/lex.yy.c 2007-07-28 22:40:56.000000000 +0200
31 @@ -442,9 +442,15 @@
32
33 #ifndef YY_SKIP_YYWRAP
34 #ifdef __cplusplus
35 -extern "C" int yywrap YY_PROTO(( void ));
36 -#else
37 -extern int yywrap YY_PROTO(( void ));
38 +/* extern "C" int yywrap YY_PROTO(( void )); */
39 +int yywrap (void ) {
40 + return 1;
41 +}
42 +#else
43 +/* extern int yywrap YY_PROTO(( void )); */
44 +int yywrap (void ) {
45 + return 1;
46 +}
47 #endif
48 #endif
49