spreadlevel-plot: Fix missing #include <stdlib.h>
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 4 Apr 2012 04:14:03 +0000 (21:14 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 4 Apr 2012 04:14:03 +0000 (21:14 -0700)
Reported by GCC:

spreadlevel-plot.c: In function ‘spreadlevel_plot_chart_destroy’:
spreadlevel-plot.c:84: error: implicit declaration of function
‘free’
preadlevel-plot.c:84: error: incompatible implicit declaration of
built-in function ‘free’

src/output/charts/spreadlevel-plot.c

index 8fcc0bdeebfa8856accf15ae6e1e3e7974526084..d5b6e3d01a33aa483f6968fd9493a9fffca30a2a 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <math.h>
 #include <float.h>
+#include <stdlib.h>
 
 struct chart_item *
 spreadlevel_plot_create (const char *label, double tx_pwr)