diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-12-07 16:51:36 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-12-07 16:51:36 +0000 |
commit | 35d853280159bea628c9356cf0e690b1bec9ed52 (patch) | |
tree | a17ee72c81806c612cca7a6119e8c4785a3db5c6 /Build/source/texk/web2c/luatexdir | |
parent | e84ea0384009f65714151198b3138c148cf5e890 (diff) |
more configure checks for tex/web2c/
git-svn-id: svn://tug.org/texlive/trunk@16322 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/loslibext.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index 3e5ee0db483..1a2a83e4c08 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,3 +1,8 @@ +2009-12-07 Peter Breitenlohner <peb@mppmu.mpg.de> + + * lua/loslibext.c (do_mkdtemp): Declare as static and skip + compilation when not used. + 2009-12-06 Peter Breitenlohner <peb@mppmu.mpg.de> * pdf/pagetree.c, utils/utils.c: Drop #ifdef HAVE_ASPRINTF and diff --git a/Build/source/texk/web2c/luatexdir/lua/loslibext.c b/Build/source/texk/web2c/luatexdir/lua/loslibext.c index 979ed4202a8..95d27a20f37 100644 --- a/Build/source/texk/web2c/luatexdir/lua/loslibext.c +++ b/Build/source/texk/web2c/luatexdir/lua/loslibext.c @@ -810,13 +810,14 @@ static int os_gettimeofday(lua_State * L) } #endif +#ifndef HAVE_MKDTEMP static const char repl[] = "0123456789abcdefghijklmnopqrstuvwxyz"; static int dirs_made = 0; #define MAXTRIES 36*36*36 -char *do_mkdtemp(char *tmpl) +static char *do_mkdtemp(char *tmpl) { int count; int value; @@ -848,6 +849,7 @@ char *do_mkdtemp(char *tmpl) } return NULL; } +#endif static int os_tmpdir(lua_State * L) { |