diff options
Diffstat (limited to 'g10/exec.c')
-rw-r--r-- | g10/exec.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 */ |