commit 713bd1c5209fc9584b4bc121b6d245c8c447397c
parent d40ac836e4c5fefa790dcc00a00ebaabb0823b9a
Author: kyle <kyle@getaddrinfo.net>
Date: Wed, 16 Mar 2016 20:05:34 -0600
lib: update to use new header
Diffstat:
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/Makefile b/lib/Makefile
@@ -1,7 +1,7 @@
LIB = scv
SRCS = runtime.c
-CFLAGS += -std=c89 -pthread -I../
+CFLAGS += -std=c89 -pthread
LDADD += -pthread
NOPROFILE = 1
diff --git a/lib/runtime.c b/lib/runtime.c
@@ -5,7 +5,7 @@
#include <sys/socket.h>
#include <sys/un.h>
-#include <scv_global.h>
+#include "scv_runtime.h"
/* Entry point into instrumented application */
extern struct scv_node node0;
@@ -44,13 +44,6 @@ control_thread(void *arg)
}
}
-__attribute__((constructor))
-static void runtime_init()
-{
- pthread_t tid;
- pthread_create(&tid, NULL, control_thread, NULL);
-}
-
void
send_metadata(int fd)
{
@@ -133,3 +126,10 @@ xread(int d, uint8_t *buf, size_t bytes_total)
return bytes_read;
}
+
+__attribute__((constructor))
+static void runtime_init()
+{
+ pthread_t tid;
+ pthread_create(&tid, NULL, control_thread, NULL);
+}