X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fsysdep.h;h=ffe21c1e78fa31bf649971fda889b76b536e2e7a;hb=f579cd1691461a35182fbbf7085f6e74827f4269;hp=634de7541363b9df551b39a0a92b765afef4835a;hpb=67bfa88fd845215587da468991d836852a10307f;p=wget diff --git a/src/sysdep.h b/src/sysdep.h index 634de754..ffe21c1e 100644 --- a/src/sysdep.h +++ b/src/sysdep.h @@ -45,6 +45,20 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #endif /* WINDOWS */ +/* Watcom-specific stuff. In practice this is probably specific to + Windows, although Watcom exists under other OS's too. For that + reason, we keep this here. */ + +#ifdef __WATCOMC__ +/* Watcom has its own alloca() defined in malloc.h malloc.h needs to + be included in the sources to prevent 'undefined external' errors + at the link phase. */ +# include +/* io.h defines unlink() and chmod(). We put this here because it's + way too obscure to require all the .c files to observe. */ +# include +#endif /* __WATCOMC__ */ + /* Needed for compilation under OS/2: */ #ifdef __EMX__ #ifndef S_ISLNK