summaryrefslogtreecommitdiffstats
path: root/package/openvmtools/0001-has_bsd_printf.patch
blob: df23f00414d8b841fe1e9c3b82ed8ab54e45e6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
lib/misc/msgList.c: missing #ifdef

This macro checks for BSD style printf(), which is not present
when compiling for uClibc. The linked functions are unnecessary in
this case, and they break compilation.

Signed-off-by: Karoly Kasza <kaszak@gmail.com>

--- openvmtools-stable-9.10.0.orig/open-vm-tools/lib/misc/msgList.c	2015-06-17 10:01:00.000000000 +0200
+++ openvmtools-stable-9.10.0/open-vm-tools/lib/misc/msgList.c		2015-06-17 10:01:00.000000000 +0200
@@ -487,6 +487,7 @@
    return messages->id;
 }
 
+#ifdef HAS_BSD_PRINTF
 
 /*
  *----------------------------------------------------------------------
@@ -566,6 +567,7 @@
    }
 }
 
+#endif
 
 /*
  *----------------------------------------------------------------------
OpenPOWER on IntegriCloud