From: Erik van der Kouwe Date: Mon, 18 Jan 2010 18:06:43 +0000 (+0000) Subject: Use _POSIX_SOURCE rather than _MINIX to protect popen, pclose and snprintf X-Git-Tag: v3.1.6~71 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch12.html?a=commitdiff_plain;h=32ad26e6987b780e92b16785273b17599d8eee26;p=minix.git Use _POSIX_SOURCE rather than _MINIX to protect popen, pclose and snprintf --- diff --git a/include/stdio.h b/include/stdio.h index e3f6f8c87..c5ade151d 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -143,9 +143,7 @@ _PROTOTYPE (FILE *fdopen, (int _fildes, const char *_types) ); #define fileno(stream) ((stream)->_fd) #define L_ctermid 255 /* required by POSIX */ #define L_cuserid 255 /* required by POSIX */ -#endif -#ifdef _MINIX _PROTOTYPE(FILE *popen, (const char *_command, const char *_type)); _PROTOTYPE(int pclose, (FILE *_stream)); _PROTOTYPE(int snprintf, (char *_s, size_t _n, const char *_format, ...));