diff options
author | midipix <writeonce@midipix.org> | 2018-06-26 14:36:26 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-06-27 07:30:01 -0400 |
commit | 6088476d902b8bcbf688ce7cb6055a4c47c2d0b7 (patch) | |
tree | d3dbacd94425a99567611084cfb392589f1e7b9d /src | |
parent | 5cc5f58e9585ec3e0455fbc54a227715144f91ae (diff) | |
download | slibtool-6088476d902b8bcbf688ce7cb6055a4c47c2d0b7.tar.bz2 slibtool-6088476d902b8bcbf688ce7cb6055a4c47c2d0b7.tar.xz |
driver: argv usage and error output: use the signal-resilient slbt_dprintf().
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/slibtool_dprintf_impl.h | 4 | ||||
-rw-r--r-- | src/internal/slibtool_driver_impl.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/internal/slibtool_dprintf_impl.h b/src/internal/slibtool_dprintf_impl.h index b223f8a..c99c4b1 100644 --- a/src/internal/slibtool_dprintf_impl.h +++ b/src/internal/slibtool_dprintf_impl.h @@ -1,6 +1,10 @@ #ifndef SLIBTOOL_DPRINTF_IMPL_H #define SLIBTOOL_DPRINTF_IMPL_H +#ifdef ARGV_DRIVER +#define argv_dprintf slbt_dprintf +#endif + int slbt_dprintf(int fd, const char * fmt, ...); #endif diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h index fbeafbc..2f2302a 100644 --- a/src/internal/slibtool_driver_impl.h +++ b/src/internal/slibtool_driver_impl.h @@ -6,6 +6,7 @@ #include <sys/types.h> #include <slibtool/slibtool.h> +#include "slibtool_dprintf_impl.h" #include "argv/argv.h" #define SLBT_OPTV_ELEMENTS 64 |