diff options
Diffstat (limited to 'src/luaconf.h')
-rw-r--r-- | src/luaconf.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/luaconf.h b/src/luaconf.h index 613739a..1ab0ad2 100644 --- a/src/luaconf.h +++ b/src/luaconf.h @@ -603,6 +603,8 @@ union luai_Cast { double l_d; long l_l; }; #if defined(LUA_USE_MKSTEMP) #include <unistd.h> +/* we have newer libraries even though the dialect is C99 */ +extern int mkstemp(char *); #define LUA_TMPNAMBUFSIZE 32 #define lua_tmpnam(b,e) { \ strcpy(b, "/tmp/lua_XXXXXX"); \ @@ -625,6 +627,11 @@ union luai_Cast { double l_d; long l_l; }; */ #if defined(LUA_USE_POPEN) +/* we have newer libraries even though the dialect is C99 */ +#include <stdio.h> +extern FILE *popen(const char *, const char *); +extern int pclose(FILE *); + #define lua_popen(L,c,m) ((void)L, fflush(NULL), popen(c,m)) #define lua_pclose(L,file) ((void)L, (pclose(file) != -1)) |