Use _POSIX_SOURCE rather than _MINIX to protect popen, pclose and snprintf
This commit is contained in:
parent
daca9de450
commit
32ad26e698
1 changed files with 0 additions and 2 deletions
|
@ -143,9 +143,7 @@ _PROTOTYPE (FILE *fdopen, (int _fildes, const char *_types) );
|
||||||
#define fileno(stream) ((stream)->_fd)
|
#define fileno(stream) ((stream)->_fd)
|
||||||
#define L_ctermid 255 /* required by POSIX */
|
#define L_ctermid 255 /* required by POSIX */
|
||||||
#define L_cuserid 255 /* required by POSIX */
|
#define L_cuserid 255 /* required by POSIX */
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _MINIX
|
|
||||||
_PROTOTYPE(FILE *popen, (const char *_command, const char *_type));
|
_PROTOTYPE(FILE *popen, (const char *_command, const char *_type));
|
||||||
_PROTOTYPE(int pclose, (FILE *_stream));
|
_PROTOTYPE(int pclose, (FILE *_stream));
|
||||||
_PROTOTYPE(int snprintf, (char *_s, size_t _n, const char *_format, ...));
|
_PROTOTYPE(int snprintf, (char *_s, size_t _n, const char *_format, ...));
|
||||||
|
|
Loading…
Reference in a new issue