diff options
Diffstat (limited to 'scripts/basic/docproc.c')
| -rw-r--r-- | scripts/basic/docproc.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c index 8828901a1..c488cd53e 100644 --- a/scripts/basic/docproc.c +++ b/scripts/basic/docproc.c | |||
| @@ -38,7 +38,9 @@ | |||
| 38 | #include <unistd.h> | 38 | #include <unistd.h> |
| 39 | #include <limits.h> | 39 | #include <limits.h> |
| 40 | #include <sys/types.h> | 40 | #include <sys/types.h> |
| 41 | #ifndef __MINGW32__ | ||
| 41 | #include <sys/wait.h> | 42 | #include <sys/wait.h> |
| 43 | #endif | ||
| 42 | //bbox disabled: #include <alloca.h> | 44 | //bbox disabled: #include <alloca.h> |
| 43 | 45 | ||
| 44 | /* exitstatus is used to keep track of any failing calls to kernel-doc, | 46 | /* exitstatus is used to keep track of any failing calls to kernel-doc, |
| @@ -78,12 +80,24 @@ void usage (void) | |||
| 78 | */ | 80 | */ |
| 79 | void exec_kernel_doc(char **svec) | 81 | void exec_kernel_doc(char **svec) |
| 80 | { | 82 | { |
| 83 | #ifndef __MINGW32__ | ||
| 81 | pid_t pid; | 84 | pid_t pid; |
| 82 | int ret; | 85 | int ret; |
| 86 | #endif | ||
| 83 | char *real_filename; | 87 | char *real_filename; |
| 84 | int rflen; | 88 | int rflen; |
| 85 | 89 | ||
| 86 | /* Make sure output generated so far are flushed */ | 90 | /* Make sure output generated so far are flushed */ |
| 91 | #ifdef __MINGW32__ | ||
| 92 | fflush(stdout); | ||
| 93 | rflen = strlen(getenv("SRCTREE")); | ||
| 94 | rflen += strlen(KERNELDOCPATH KERNELDOC); | ||
| 95 | real_filename = alloca(rflen + 1); | ||
| 96 | strcpy(real_filename, getenv("SRCTREE")); | ||
| 97 | strcat(real_filename, KERNELDOCPATH KERNELDOC); | ||
| 98 | fprintf(stderr, "NOTIMPL: exec %s\n", real_filename); | ||
| 99 | exit(1); | ||
| 100 | #else | ||
| 87 | fflush(stdout); | 101 | fflush(stdout); |
| 88 | switch(pid=fork()) { | 102 | switch(pid=fork()) { |
| 89 | case -1: | 103 | case -1: |
| @@ -106,6 +120,7 @@ void exec_kernel_doc(char **svec) | |||
| 106 | exitstatus |= WEXITSTATUS(ret); | 120 | exitstatus |= WEXITSTATUS(ret); |
| 107 | else | 121 | else |
| 108 | exitstatus = 0xff; | 122 | exitstatus = 0xff; |
| 123 | #endif | ||
| 109 | } | 124 | } |
| 110 | 125 | ||
| 111 | /* Types used to create list of all exported symbols in a number of files */ | 126 | /* Types used to create list of all exported symbols in a number of files */ |
