diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-04-14 09:20:44 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-04-14 09:20:44 +0000 |
commit | 42fa88e1eeba9584277f46641e7ae7aea2920a6f (patch) | |
tree | a09ae3bd5e9cd4051b01cff1b8aa4f7c6621174d /Build/source | |
parent | d2f8a4aba865686f2de4f4fa39a575752166b11d (diff) |
Aleph: Declare {in,out}_file_fd only when used (!WIN32) - No need to recompile
git-svn-id: svn://tug.org/texlive/trunk@36852 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-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); |