summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-14 20:26:54 -0400
committermidipix <writeonce@midipix.org>2018-07-14 20:29:22 -0400
commit8f11ee79949e0ee0ae347052aaa6f0ca476118c4 (patch)
treebcbded59ea7d7e59a4b575818c4d9ae14a22cf6c /src
parent419b74a393e084299c240b6f76b34ab362548dfe (diff)
downloadmdso-8f11ee79949e0ee0ae347052aaa6f0ca476118c4.tar.bz2
mdso-8f11ee79949e0ee0ae347052aaa6f0ca476118c4.tar.xz
driver: argv usage and error output: use the signal-resilient mdso_dprintf().
Diffstat (limited to 'src')
-rw-r--r--src/internal/mdso_dprintf_impl.h4
-rw-r--r--src/internal/mdso_driver_impl.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/internal/mdso_dprintf_impl.h b/src/internal/mdso_dprintf_impl.h
index 0b3b079..f77a0e4 100644
--- a/src/internal/mdso_dprintf_impl.h
+++ b/src/internal/mdso_dprintf_impl.h
@@ -1,6 +1,10 @@
#ifndef MDSO_DPRINTF_IMPL_H
#define MDSO_DPRINTF_IMPL_H
+#ifdef ARGV_DRIVER
+#define argv_dprintf mdso_dprintf
+#endif
+
int mdso_dprintf(int fd, const char * fmt, ...);
#endif
diff --git a/src/internal/mdso_driver_impl.h b/src/internal/mdso_driver_impl.h
index 2107302..8fe6f35 100644
--- a/src/internal/mdso_driver_impl.h
+++ b/src/internal/mdso_driver_impl.h
@@ -6,6 +6,7 @@
#include <sys/types.h>
#include <mdso/mdso.h>
+#include "mdso_dprintf_impl.h"
#include "argv/argv.h"
#ifdef __PE__