889f7d1d28c5052e48253209bf986cd9aa0ca250
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / openvmtools / 0001-has_bsd_printf.patch
1 lib/misc/msgList.c: missing #ifdef
2
3 This macro checks for BSD style printf(), which is not present
4 when compiling for uClibc. The linked functions are unnecessary in
5 this case, and they break compilation.
6
7 Signed-off-by: Karoly Kasza <kaszak@gmail.com>
8
9 --- open-vm-tools-9.4.6-1770165.orig/lib/misc/msgList.c 2014-07-02 00:21:14.000000000 +0200
10 +++ open-vm-tools-9.4.6-1770165/lib/misc/msgList.c      2014-07-29 13:40:40.000000000 +0200
11 @@ -487,6 +487,7 @@
12     return messages->id;
13  }
14  
15 +#ifdef HAS_BSD_PRINTF
16  
17  /*
18   *----------------------------------------------------------------------
19 @@ -566,6 +567,7 @@
20     }
21  }
22  
23 +#endif
24  
25  /*
26   *----------------------------------------------------------------------