From 36f709d911fada11825b77e72ceb6277f2c9a521 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 15 Jul 2018 10:51:43 -0400 Subject: driver: argv usage and error output: use the signal-resilient ptyc_dprintf(). --- src/internal/ptycon_dprintf_impl.h | 4 ++++ src/internal/ptycon_driver_impl.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/internal/ptycon_dprintf_impl.h b/src/internal/ptycon_dprintf_impl.h index 495b787..d2b5c7d 100644 --- a/src/internal/ptycon_dprintf_impl.h +++ b/src/internal/ptycon_dprintf_impl.h @@ -1,6 +1,10 @@ #ifndef PTYCON_DPRINTF_IMPL_H #define PTYCON_DPRINTF_IMPL_H +#ifdef ARGV_DRIVER +#define argv_dprintf ptyc_dprintf +#endif + int ptyc_dprintf(int fd, const char * fmt, ...); #endif diff --git a/src/internal/ptycon_driver_impl.h b/src/internal/ptycon_driver_impl.h index 486def3..1037894 100644 --- a/src/internal/ptycon_driver_impl.h +++ b/src/internal/ptycon_driver_impl.h @@ -10,6 +10,7 @@ #include #include "ptycon_bridge_impl.h" +#include "ptycon_dprintf_impl.h" #include "argv/argv.h" #define PTYC_OPTV_ELEMENTS 64 -- cgit v1.2.3