608847 driver: argv usage and error output: use the signal-resilient slbt_dprintf().

Authored and Committed by midipix 6 years ago
    driver: argv usage and error output: use the signal-resilient slbt_dprintf().
    
        
src/internal/slibtool_dprintf_impl.h CHANGED
@@ -1,6 +1,10 @@
1
1
#ifndef SLIBTOOL_DPRINTF_IMPL_H
2
2
#define SLIBTOOL_DPRINTF_IMPL_H
3
3
4
+ #ifdef ARGV_DRIVER
5
+ #define argv_dprintf slbt_dprintf
6
+ #endif
7
+
4
8
int slbt_dprintf(int fd, const char * fmt, ...);
5
9
6
10
#endif
src/internal/slibtool_driver_impl.h CHANGED
@@ -6,6 +6,7 @@
6
6
#include <sys/types.h>
7
7
8
8
#include <slibtool/slibtool.h>
9
+ #include "slibtool_dprintf_impl.h"
9
10
#include "argv/argv.h"
10
11
11
12
#define SLBT_OPTV_ELEMENTS 64