disable posix code on windows in util_exec_command

Wed, 02 Nov 2022 11:39:23 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 02 Nov 2022 11:39:23 +0100
changeset 740
f4ef952ad98b
parent 739
bba6a6e221b4
child 741
e9a5dd08258d

disable posix code on windows in util_exec_command

libidav/utils.c file | annotate | diff | comparison | revisions
--- a/libidav/utils.c	Wed Nov 02 11:34:49 2022 +0100
+++ b/libidav/utils.c	Wed Nov 02 11:39:23 2022 +0100
@@ -1124,7 +1124,7 @@
 #ifdef _WIN32
     fprintf(stderr, "util_exec_command unsupported\n");
     return NULL;
-#endif
+#else
     
     int pout[2];
     if(pipe(pout)) {
@@ -1168,6 +1168,7 @@
     close(pout[0]);
     
     return ret;
+#endif
 }
 
 char* util_hexstr(const unsigned char *data, size_t len) {

mercurial