aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to 'g10')
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/exec.c14
2 files changed, 19 insertions, 0 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 424e03daa..3f4b95893 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-03 David Shaw <[email protected]>
+
+ * exec.c: Provide stubs for exec_ functions when NO_EXEC is
+ defined.
+
2002-05-02 David Shaw <[email protected]>
* photoid.h, photoid.c (parse_image_header, image_type_to_string):
diff --git a/g10/exec.c b/g10/exec.c
index bd5ead01c..4c0c664fc 100644
--- a/g10/exec.c
+++ b/g10/exec.c
@@ -41,6 +41,19 @@
#include "util.h"
#include "exec.h"
+#ifdef NO_EXEC
+int exec_write(struct exec_info **info,const char *program,
+ const char *args_in,int writeonly,int binary)
+{
+ log_error(_("no remote program execution supported\n"));
+ return G10ERR_GENERAL;
+}
+
+int exec_read(struct exec_info *info) { return G10ERR_GENERAL; }
+int exec_finish(struct exec_info *info) { return G10ERR_GENERAL; }
+
+#else /* ! NO_EXEC */
+
#ifndef HAVE_MKDTEMP
char *mkdtemp(char *template);
#endif
@@ -494,3 +507,4 @@ int exec_finish(struct exec_info *info)
return ret;
}
+#endif /* ! NO_EXEC */