diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-01-17 13:27:28 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-01-17 13:27:28 -0200 |
commit | 9a5bab82ff6f11773866f9f7c38f69c98b19d2e8 (patch) | |
tree | 7ece18197a96e2ed3b156c1fb99440124becf95a /liolib.c | |
parent | 32fd039bb563b24cbe4621dcc9b3cc18d9e078b0 (diff) | |
download | lua-9a5bab82ff6f11773866f9f7c38f69c98b19d2e8.tar.gz lua-9a5bab82ff6f11773866f9f7c38f69c98b19d2e8.tar.bz2 lua-9a5bab82ff6f11773866f9f7c38f69c98b19d2e8.zip |
use the more modern _POSIX_C_SOURCE instead of older _POSIX_SOURCE
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 2.28 2002/12/04 17:38:31 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.29 2002/12/20 10:26:33 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -28,6 +28,13 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | 30 | ||
31 | #ifdef _POSIX_C_SOURCE | ||
32 | #if _POSIX_C_SOURCE >= 2 | ||
33 | #define USE_POPEN | ||
34 | #endif | ||
35 | #endif | ||
36 | |||
37 | |||
31 | #ifndef USE_POPEN | 38 | #ifndef USE_POPEN |
32 | #define pclose(f) (-1) | 39 | #define pclose(f) (-1) |
33 | #endif | 40 | #endif |