diff options
-rw-r--r-- | Build/source/texk/web2c/alephdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/alephdir/alephbis.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/alephdir/ChangeLog b/Build/source/texk/web2c/alephdir/ChangeLog index 2cdd5cbfa51..461a28b598f 100644 --- a/Build/source/texk/web2c/alephdir/ChangeLog +++ b/Build/source/texk/web2c/alephdir/ChangeLog @@ -1,3 +1,7 @@ +2015-04-14 Peter Breitenlohner <peb@mppmu.mpg.de> + + * alephbis.c: Declare {in,out}_file_fd only when used (!WIN32). + 2015-01-18 Peter Breitenlohner <peb@mppmu.mpg.de> * com16bit.ch: Drop intcast(). diff --git a/Build/source/texk/web2c/alephdir/alephbis.c b/Build/source/texk/web2c/alephdir/alephbis.c index a33ce435342..c8a659d1aa0 100644 --- a/Build/source/texk/web2c/alephdir/alephbis.c +++ b/Build/source/texk/web2c/alephdir/alephbis.c @@ -39,10 +39,6 @@ runexternalocp (string external_ocp_name) char *out_file_name; FILE *in_file; FILE *out_file; -#if HAVE_MKSTEMP - int in_file_fd; - int out_file_fd; -#endif char command_line[400]; int i; unsigned c; @@ -63,8 +59,10 @@ runexternalocp (string external_ocp_name) mktemp(in_file_name); in_file = fopen(in_file_name, FOPEN_WBIN_MODE); #else - #if HAVE_MKSTEMP + int in_file_fd; + int out_file_fd; + in_file_name = xstrdup("/tmp/__aleph__in__XXXXXX"); in_file_fd = mkstemp(in_file_name); in_file = fdopen(in_file_fd, FOPEN_WBIN_MODE); |