diff options
author | wlemb <wlemb> | 2003-10-15 05:27:19 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2003-10-15 05:27:19 +0000 |
commit | 48d11a2ff13f1bc894d5b56a1aee6799b8697cd0 (patch) | |
tree | 33a3c6956f4d3f8cffa4c39016bfaf954c09160a /src/include | |
parent | a438ede31d52463c67a716213c6303bde53e76e3 (diff) | |
download | groff-48d11a2ff13f1bc894d5b56a1aee6799b8697cd0.tar.gz |
* aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
(GROFF_LIBC): New function.
* configure.ac: Call GROFF_LIBC.
Check for `kill'.
* configure: Regenerated.
* src/include/lib.h: Handle __MINGW32__.
* src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
Add macro for `pipe'.
Define P_tmpdir.
* src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
correctly.
* src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
Implement.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/lib.h | 5 | ||||
-rw-r--r-- | src/include/nonposix.h | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/src/include/lib.h b/src/include/lib.h index bebad98e..30ccf4de 100644 --- a/src/include/lib.h +++ b/src/include/lib.h @@ -31,14 +31,15 @@ extern "C" { const char *if_to_a(int, int); } -/* stdio.h on IRIX, OSF/1, emx, and UWIN include getopt.h */ +/* stdio.h on IRIX, OSF/1, emx, UWIN, and MinGW include getopt.h */ /* unistd.h on CYGWIN includes getopt.h */ #if !(defined(__sgi) \ || (defined(__osf__) && defined(__alpha)) \ || defined(_UWIN) \ || defined(__EMX__) \ - || defined(__CYGWIN__)) + || defined(__CYGWIN__) \ + || defined(__MINGW32__)) #include <groff-getopt.h> #else #include <getopt.h> diff --git a/src/include/nonposix.h b/src/include/nonposix.h index 73422d92..08eb3b0c 100644 --- a/src/include/nonposix.h +++ b/src/include/nonposix.h @@ -36,11 +36,12 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ # ifdef HAVE_UNISTD_H # include <unistd.h> # endif -# ifdef _MSC_VER +# if defined(_MSC_VER) || defined(__MINGW32__) # define POPEN_RT "rt" # define POPEN_WT "wt" # define popen(c,m) _popen(c,m) # define pclose(p) _pclose(p) +# define pipe(pfd) _pipe((pfd),0,_O_BINARY|_O_NOINHERIT) # define getpid() (1) # define mkdir(p,m) _mkdir(p) # define setmode(f,m) _setmode(f,m) @@ -85,6 +86,15 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* The system null device. */ # define NULL_DEV "NUL" +/* The default place to create temporary files. */ +# ifndef P_tmpdir +# ifdef _P_tmpdir +# define P_tmpdir _P_tmpdir +# else +# define P_tmpdir "c:/temp" +# endif +# endif + /* Prototypes. */ # ifdef __cplusplus extern "C" { |