diff --git a/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c b/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c index 8dffd065f328f3f5418039a77135648768a5a414..075698e2180c6b1c767446c8a34c6c768894a34c 100644 --- a/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c +++ b/rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.c @@ -429,10 +429,14 @@ int pal_init(pal_attr_t *attr) return 0; } -int pal_exec(char *path, char *argv[], const char *envp[], - int *exit_code, int stdin, int stdout, int stderr) +typedef struct { + int stdin, stdout, stderr; +} pal_stdio_fds; + +int pal_exec(char *path, char *argv[], pal_stdio_fds *stdio, + int *exit_code) { - FILE *fp = fdopen(stderr, "w"); + FILE *fp = fdopen(stdio->stderr, "w"); if (!fp) return -1;