matchbox-panel: fixed undefined reference to `log' and `lrint'
authorJean-Paul Etienne <fractalclone@gmail.com>
Mon, 2 Feb 2015 14:39:00 +0000 (15:39 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 2 Feb 2015 20:42:48 +0000 (21:42 +0100)
commitebe1adf83f5866ab51955491f5dd5cc4a19c5cb4
treee02107378fa677edb8ccd7f536968c62199ab103
parenta6ef726b59597bdb8953ddc55c2cb781ba993f64
matchbox-panel: fixed undefined reference to `log' and `lrint'

Encountered the following while compiling matchbox-panel

mb-applet-wireless.o: In function `update_wireless':
.. matchbox-panel-0.9.3/applets/mb-applet-wireless.c:143: undefined reference to `log'
.. matchbox-panel-0.9.3/applets/mb-applet-wireless.c:143: undefined reference to `lrint'

fixed the issue by adding
1) #include <math.h> in mb-applet-wireless.c
2) -lm option to WIRELESS_LIB in applets/Makefile.in

Signed-off-by: Jean-Paul Etienne <fractalclone@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[arnout: rename patch and add description and Signed-off-by]

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/matchbox/matchbox-panel/0002-mb-applet-wireless.patch [new file with mode: 0644]