PR: 1924
Submitted by: "Green, Paul" <Paul.Green@stratus.com> Approved by: steve@openssl.org Fix _POSIX_C_SOURCE usage.
This commit is contained in:
parent
c65db618bb
commit
756d2074b8
@ -109,10 +109,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _POSIX_C_SOURCE
|
||||||
#define _POSIX_C_SOURCE 2 /* On VMS, you need to define this to get
|
#define _POSIX_C_SOURCE 2 /* On VMS, you need to define this to get
|
||||||
the declaration of fileno(). The value
|
the declaration of fileno(). The value
|
||||||
2 is to make sure no function defined
|
2 is to make sure no function defined
|
||||||
in POSIX-2 is left undefined. */
|
in POSIX-2 is left undefined. */
|
||||||
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -122,7 +122,9 @@
|
|||||||
* sigaction and fileno included. -pedantic would be more appropriate for
|
* sigaction and fileno included. -pedantic would be more appropriate for
|
||||||
* the intended purposes, but we can't prevent users from adding -ansi.
|
* the intended purposes, but we can't prevent users from adding -ansi.
|
||||||
*/
|
*/
|
||||||
#define _POSIX_C_SOURCE 1
|
#ifndef _POSIX_C_SOURCE
|
||||||
|
#define _POSIX_C_SOURCE 2
|
||||||
|
#endif
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user