aboutsummaryrefslogtreecommitdiff
path: root/src/trace
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-04-25 17:51:58 +0200
committerAlexander Færøy <ahf@torproject.org>2017-04-25 18:02:19 +0200
commit236cf49670d1a4995e0494675ee4fbf155e6f90a (patch)
tree379b2d9002e1c71bfcb67c3800727767830d301d /src/trace
parent43db91bd87a6f197a93285a87df473616cc1f6c2 (diff)
downloadtor-236cf49670d1a4995e0494675ee4fbf155e6f90a.tar.gz
tor-236cf49670d1a4995e0494675ee4fbf155e6f90a.zip
Add stub function for libor-trace.
OS X's ar(1) doesn't allow us to create an archive with no object files. This patch adds a stub file with a stub function in it to make OS X happy again.
Diffstat (limited to 'src/trace')
-rw-r--r--src/trace/include.am8
-rw-r--r--src/trace/trace.c11
-rw-r--r--src/trace/trace.h10
3 files changed, 26 insertions, 3 deletions
diff --git a/src/trace/include.am b/src/trace/include.am
index f7de1fb111..3285b04de6 100644
--- a/src/trace/include.am
+++ b/src/trace/include.am
@@ -3,15 +3,17 @@
AM_CPPFLAGS += -I$(srcdir)/src
noinst_LIBRARIES += \
- src/trace/libor-trace.a
-LIBOR_TRACE_A_SOURCES =
+ src/trace/libor-trace.a
+LIBOR_TRACE_A_SOURCES = \
+ src/trace/trace.c
TRACEHEADERS = \
+ src/trace/trace.h \
src/trace/events.h
if USE_EVENT_TRACING_DEBUG
TRACEHEADERS += \
- src/trace/debug.h
+ src/trace/debug.h
endif
# Library source files.
diff --git a/src/trace/trace.c b/src/trace/trace.c
new file mode 100644
index 0000000000..fcdb80091f
--- /dev/null
+++ b/src/trace/trace.c
@@ -0,0 +1,11 @@
+/* Copyright (c) 2017, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+#include "trace.h"
+
+/** Initialize the tracing library. */
+void
+tor_trace_init(void)
+{
+}
+
diff --git a/src/trace/trace.h b/src/trace/trace.h
new file mode 100644
index 0000000000..28fcd8eea8
--- /dev/null
+++ b/src/trace/trace.h
@@ -0,0 +1,10 @@
+/* Copyright (c) 2017, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+#ifndef TOR_TRACE_TRACE_H
+#define TOR_TRACE_TRACE_H
+
+void tor_trace_init(void);
+
+#endif // TOR_TRACE_TRACE_H
+