]> sigrok.org Git - libsigrok.git/blobdiff - src/output/srzip.c
scpi/usbtmc: Implement Rigol DS1000 workaround on any firmware version.
[libsigrok.git] / src / output / srzip.c
index e52fec875fbc9031e384622c29e683fd78eb86ec..2d2ce720d1f338edb23d04e04f25d48ee5288295 100644 (file)
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
@@ -186,7 +187,7 @@ static int zip_append(const struct sr_output *o, unsigned char *buf,
                if ((tmpfile = g_mkstemp(tmpname)) == -1)
                        return SR_ERR;
                if (write(tmpfile, metafile, len) < 0) {
-                       sr_dbg("Failed to create new metadata: %s", strerror(errno));
+                       sr_dbg("Failed to create new metadata: %s", g_strerror(errno));
                        g_free(metafile);
                        unlink(tmpname);
                        return SR_ERR;