[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #17381] Compile errors under DJGPP
From: |
Eli Zaretskii |
Subject: |
Re: [bug #17381] Compile errors under DJGPP |
Date: |
Sat, 12 Aug 2006 15:49:50 +0300 |
> Date: Tue, 8 Aug 2006 23:03:15 +0000
> From: anonymous <address@hidden>
> Cc:
>
> job.c:1898: error: conflicting types for 'child_execute_job'
> job.h:79: error: previous declaration of 'child_execute_job' was here
> job.c: In function 'child_execute_job':
> job.c:1931: error: void value not ignored as it ought to be
Thanks.
Here's a patch to fix this:
2006-08-12 Eli Zaretskii <address@hidden>
* job.h [__MSDOS__]: Use the same prototype for child_execute_job
as __EMX__ does.
--- job.h~0 2006-02-12 02:16:04.000000000 +0200
+++ job.h 2006-08-12 15:44:06.875000000 +0300
@@ -73,7 +73,7 @@
extern char **construct_command_argv PARAMS ((char *line, char **restp, struct
file *file, char** batch_file));
#ifdef VMS
extern int child_execute_job PARAMS ((char *argv, struct child *child));
-#elif defined(__EMX__)
+#elif defined(__MSDOS__) || defined(__EMX__)
extern int child_execute_job PARAMS ((int stdin_fd, int stdout_fd, char
**argv, char **envp));
#else
extern void child_execute_job PARAMS ((int stdin_fd, int stdout_fd, char
**argv, char **envp));