Commit ffbfbef9 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

more vxworks patches

parent 1fb2e0f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@
#include <openssl/pkcs7.h>
#include <openssl/bio.h>

#ifndef OPENSSL_SYSNAME_NETWARE
#if !defined(OPENSSL_SYSNAME_NETWARE) && !defined(OPENSSL_SYSNAME_VXWORKS)
#include <memory.h>
#endif
#include <stdio.h>
+4 −1
Original line number Diff line number Diff line
@@ -56,15 +56,18 @@
 * [including the GNU Public Licence.]
 */

#include "e_os.h"

/* We need to define this to get macros like S_IFBLK and S_IFCHR */
#if !defined(OPENSSL_SYS_VXWORKS)
#define _XOPEN_SOURCE 500
#endif

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "e_os.h"
#include <openssl/crypto.h>
#include <openssl/rand.h>
#include <openssl/buffer.h>
+6 −0
Original line number Diff line number Diff line
@@ -122,9 +122,15 @@
 * sigaction and fileno included. -pedantic would be more appropriate for
 * the intended purposes, but we can't prevent users from adding -ansi.
 */
#if defined(OPENSSL_SYSNAME_VXWORKS)
#include <sys/types.h>
#endif

#if !defined(OPENSSL_SYSNAME_VXWORKS)
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 2
#endif
#endif /* !OPENSSL_SYSNAME_VXWORKS  */
#include <signal.h>
#include <stdio.h>
#include <string.h>
+4 −0
Original line number Diff line number Diff line
@@ -72,8 +72,12 @@
#elif defined(OPENSSL_SYS_NETWARE) && !defined(_WINSOCK2API_)
#include <sys/timeval.h>
#else
#if defined(OPENSSL_SYS_VXWORKS)
#include <sys/times.h>
#else
#include <sys/time.h>
#endif
#endif

#ifdef  __cplusplus
extern "C" {