From 9a5bab82ff6f11773866f9f7c38f69c98b19d2e8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 17 Jan 2003 13:27:28 -0200 Subject: use the more modern _POSIX_C_SOURCE instead of older _POSIX_SOURCE --- liolib.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index f61e1823..95b74795 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.28 2002/12/04 17:38:31 roberto Exp roberto $ +** $Id: liolib.c,v 2.29 2002/12/20 10:26:33 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -28,6 +28,13 @@ */ +#ifdef _POSIX_C_SOURCE +#if _POSIX_C_SOURCE >= 2 +#define USE_POPEN +#endif +#endif + + #ifndef USE_POPEN #define pclose(f) (-1) #endif -- cgit v1.2.3-55-g6feb