summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2015-02-20 16:38:00 +0100
committerBryce Harrington <b.harrington@samsung.com>2015-03-05 17:31:33 -0800
commit0a3b59b5cb1c13c6c3ed4c25fafe5f9cc4e8e43b (patch)
treed991cfc17dbe3f2ad17b3bf5988231b50ea691c6
parent147fbe4fd1c151a01722eac90e09371f1e2608d9 (diff)
Make utilites buildable on modern Linux distro (RHEL-7).HEADmaster
Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
-rw-r--r--Makefile4
-rw-r--r--csi-trace.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e8f8b6b..22d7396 100644
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,9 @@ benchmarks: $(QUICK_LZMA:.lzma=.trace)
lzma -cd $< | ./csi-bind > $@
csi-bind: csi-bind.c
- $(CC) $(CFLAGS) $(shell pkg-config cairo --cflags) $^ $(shell pkg-config cairo --libs) -lcairo-script-interpreter -o $@
+ $(CC) $(CFLAGS) $(shell pkg-config cairo pixman-1 --cflags) $^ $(shell pkg-config cairo pixman-1 --libs) -lcairo-script-interpreter -o $@
csi-trace: csi-trace.c
- $(CC) $(CFLAGS) $(shell pkg-config cairo --cflags) $^ $(shell pkg-config cairo --libs) -lcairo-script-interpreter -o $@
+ $(CC) $(CFLAGS) $(shell pkg-config cairo pixman-1 --cflags) $^ $(shell pkg-config cairo pixman-1 --libs) -lm -lcairo-script-interpreter -o $@
##########################################################
# Some targets to make and upload a snapshot of the traces
diff --git a/csi-trace.c b/csi-trace.c
index ea4f1e9..0e6a05b 100644
--- a/csi-trace.c
+++ b/csi-trace.c
@@ -3,6 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <math.h>
#include <setjmp.h>
#include <time.h>