Commit 6df617a5 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

#undef _POSIX_C_SOURCE in ui_openssl.c ruined IRIX builds. Comment on why

_POSIX_C_SOURCE needed in first place.
parent 8c6336b0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -117,10 +117,14 @@

#include <openssl/e_os2.h>

/* need for #define _POSIX_C_SOURCE arises whenever you pass -ansi to gcc
 * [maybe others?], because it masks interfaces not discussed in standard,
 * sigaction and fileno included. -pedantic would be more appropriate for
 * the intended purposes, but we can't prevent users from adding -ansi.
 */
#define _POSIX_C_SOURCE 1
#include <signal.h>
#include <stdio.h>
#undef _POSIX_C_SOURCE
#include <string.h>
#include <errno.h>